how keep visible ToolTip while mouse is over it?

4k Views Asked by At

Is there any way to keep a JToolTip visible while mouse is over the component who owns it, or the tooltip itself?

1

There are 1 best solutions below

8
Smit On BEST ANSWER

have you try using setToolTipText() method. Here btnNext is JButton.

btnNext.setToolTipText("Next");
ToolTipManager.sharedInstance().setDismissDelay(Integer.MAX_VALUE);