Class ValueToolTip
java.lang.Object
org.jjazz.uiutilities.api.ValueToolTip
A service to show a custom tooltip with direct control.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhide()static booleanstatic voidshow(JComponent comp, String text) Immediatly show a tooltip, and hide it after the default delay.static voidshow(JComponent comp, String text, int hideDelay) Immediatly show a tooltip, and hide it after the specified delay.
-
Field Details
-
DEFAULT_DELAY_MS
public static final int DEFAULT_DELAY_MS- See Also:
-
-
Constructor Details
-
ValueToolTip
public ValueToolTip()
-
-
Method Details
-
show
Immediatly show a tooltip, and hide it after the default delay.If method is called again before delay is expired and the text has changed, text is updated and delay is restarted.
- Parameters:
comp-text-
-
show
Immediatly show a tooltip, and hide it after the specified delay.If method is called again before delay is expired and the text has changed, text is updated and delay is restarted.
- Parameters:
comp-text-hideDelay- In milliseconds
-
hide
public static void hide() -
isVisible
public static boolean isVisible()
-