Package com.jidesoft.swing
Class JToolTipFactory
java.lang.Object
com.jidesoft.swing.JToolTipFactory
This class creates instances of JTooltip components. It provides a consistent means for creating custom tooltips
without the need for overriding JIDE components that create tooltips
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new tooltip.createToolTip(JComponent c, boolean overlapping) Creates a new tooltip.static JToolTipFactoryReturns the sharedJToolTipFactorywhich can be used to obtainJToolTips.static voidsetSharedInstance(JToolTipFactory factory) Sets theJToolTipFactorythat will be used to obtainJToolTips.
-
Constructor Details
-
JToolTipFactory
public JToolTipFactory()
-
-
Method Details
-
createToolTip
Creates a new tooltip.- Parameters:
c- the component the tooltip describes- Returns:
- the new tooltip object
-
createToolTip
Creates a new tooltip. If overlapping is true then the tooltip will take on the foreground/background color and font of the specified component (if the component isspecifiedd)- Parameters:
c- the component the tooltip describesoverlapping- whether the tooltip is for a normal or overlapping tooltip- Returns:
- the new tooltip object
-