Java: How to display a multi-line ToolTip with AWT?

Posted by Martijn Courteaux on Stack Overflow See other posts from Stack Overflow or by Martijn Courteaux
Published on 2010-05-23T15:55:32Z Indexed on 2010/05/23 16:00 UTC
Read the original article Hit count: 144

Filed under:
|
|
|

Hi,

I wrote an application and now I'm making a tray-icon. Now I want to set a multi-line tooltiptext to the tray-icon. But I don't know how. I know how to do this with Swing:

component.setToolTipText("<html>Line 1<br>Line2</html>");

But this doesn't work with AWT. Also serarating lines by \n doesn't work.

Any help would be very appreciated.
Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about tooltip