如何在鼠标悬停在其上方时保持可见的工具提示?

问题描述:

当鼠标悬停在拥有它的组件或工具提示本身上时,有什么方法可以使JToolTip可见?

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

您是否尝试过使用setToolTipText()方法.这里btnNext是JButton.

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

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