Example usage for javax.swing JToolTip setBorder

List of usage examples for javax.swing JToolTip setBorder

Introduction

In this page you can find the example usage for javax.swing JToolTip setBorder.

Prototype

@BeanProperty(preferred = true, visualUpdate = true, description = "The component's border.")
public void setBorder(Border border) 

Source Link

Document

Sets the border of this component.

Usage

From source file:org.rdv.ui.TimeSlider.java

/**
 * Creates the tooltip for the component. This changes the default tooltip by
 * setting a different border.//from   w w w.  j  a  v  a 2  s.c o  m
 * 
 * @return  the tooltip created
 */
public JToolTip createToolTip() {
    JToolTip toolTip = super.createToolTip();
    toolTip.setBackground(Color.decode("#FFFFFC"));
    toolTip.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),
            BorderFactory.createEmptyBorder(5, 5, 5, 5)));
    return toolTip;
}