如何在鼠标悬停在其上方时保持可见的工具提示? [英] how keep visible ToolTip while mouse is over it?
本文介绍了如何在鼠标悬停在其上方时保持可见的工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当鼠标悬停在拥有它的组件或工具提示本身上时,有什么方法可以使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);
这篇关于如何在鼠标悬停在其上方时保持可见的工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文