简体   繁体   中英

how keep visible ToolTip while mouse is over it?

当鼠标悬停在拥有它的组件或工具提示本身上时,是否可以使JToolTip保持可见状态?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM