Library for eclipse style tooltips?

一个人想着一个人 提交于 2019-12-11 02:48:35

问题


Does anyone know of an open source swing tooltip library that works like eclipse's tooltips? Specifically, the functionality I'm looking for is a tooltip that acts like a regular tooltip, but persists when you press F2 (or some key) so that you can copy the contents to the clipboard.

Thanks.


回答1:


Not tested myself, but maybe the JCustomTooltip (based on the javax.swing.JToolTip class)
of prefuse.org:

setPersistent(boolean inter) 

Sets if the tooltip will stay persistent on the screen to support interaction within the tooltip component.

Since the sources are available, that could be a starting point to code your own version.



来源:https://stackoverflow.com/questions/2195600/library-for-eclipse-style-tooltips

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!