Java: How to display a multi-line ToolTip with AWT?
- by Martijn Courteaux
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