List of usage examples for javax.swing JToolTip setBorder
@BeanProperty(preferred = true, visualUpdate = true, description = "The component's border.") public void setBorder(Border border)
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; }