Ordiel
Ordiel

Reputation: 2633

how keep visible ToolTip while mouse is over it?

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

Upvotes: 0

Views: 4115

Answers (1)

Smit
Smit

Reputation: 4715

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

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

Upvotes: 8

Related Questions