Library for eclipse style tooltips?

2019-07-23 17:26发布

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条回答
Juvenile、少年°
2楼-- · 2019-07-23 17:40

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.

查看更多
登录 后发表回答