JDK-6440297 : Escape characters'\n' &'\t' does not work in displayMessage()(ballon) of TrayIcon on solaris & linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6,6u2
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux,solaris_10
  • CPU: x86,sparc
  • Submitted: 2006-06-19
  • Updated: 2019-12-17
  • Resolved: 2019-12-17
Related Reports
Duplicate :  
Description
Step to Reproduce:
--------------------
1) Run the attached program. You will see a Frame on the screen & a tray icon is added to the system tray.
2) Click on the 'Display Message' button. You can see ballon on the TrayIcon. Observe that there should be a tab in the title of the ballon between 'Application' & 'State'. In the same way observe in the message part  "This is a message test" shoud come in the first line & "Ballon can't display Escape character" should come in the second line. But this is not coming as expected. 

This work fine in  window, but fails in solaris & RHEL.

Comments
EVALUATION The same thing is reproducible with Label which is used inside TrayIcon on XAWT. It seems like Graphics.drawString() doesn't support escape characters.
20-06-2006