title: Java: How to display a multi-line ToolTip with AWT?
body: <p>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:</p>
  
  <pre><code>component.setToolTipText("&lt;html&gt;Line 1&lt;br&gt;Line2&lt;/html&gt;");
  </code></pre>
  
  <p>But this doesn't work with AWT. Also serarating lines by <code>\n</code> doesn't work.</p>
  
  <p>I'm running on linux:</p>
  
  <pre><code>Ubuntu 10.04
  Kernel Linux 2.6.32-22-generic
  GNOME 2.30.0
  java version "1.6.0_18"
  OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
  OpenJDK Server VM (build 14.0-b16, mixed mode)
  </code></pre>
  
  <p>Any help would be very appreciated.<br>
  Thanks</p>