Search code examples
javaeclipseswingtooltip

Library for eclipse style tooltips?


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.


Solution

  • 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.