A: 

Have you tried converting it to a .PNG (with transparency) instead? I've found they tend to be better supported by Java (In my experience)

Richie_W
I have tried that. Same thing happens.
Jack
Sorry man :( I'm out.
Richie_W
+1  A: 

Chances are this problem cannot be resolved. It depends on wether Java is doing a good job in creating the tray subwindow in Linux or not. If Jave does it wrong, transparency is already lost when the image is drawn.

  1. What is the real background value of the icon you are using? Is it the gray tone shown above? Set it to purple to see if the transparency of the image is used (Java defaults to gray background) or not.

  2. Make sure you tried both transparency options of PNG: transparent color index as well as alpha channel. Alpha channel is very common in Linux, not so in the Windows world.

  3. The resolution of your icon is too small. Do it in 64x64 or better 128x128. AFAIK there is no standard resolution for tray icons, and even if so, it is certainly not 16x16.

  4. Another format you could try is SVG. Only try that after making sure that the transparency of the image is the problem (see 1).

See here for background information on this issue: http://www.rasterman.com/index.php?page=News (scroll down to 2 February 2006)

ypnos
Thanks.1)It's transparent ( checkered background)...I tried making it purple and it showed up as purple in the tray.2)I tried all the different PNG options when saving in GIMP and they all had the same result3)I also tried different size icons w/the same result4)I tried SVG...showed up all grey.
Jack
Sorry, ran out of space. Thanks for the ideas. Do you happen to have any other ideas?
Jack
So if Java doesn't really understand the image's transparency, that's really weird. Perhaps try drawing an image inside the application. Or perhaps there are specific options for these images. I don't know what to do else (perhaps other API available than SystemTray?)
ypnos
+1  A: 

JDIC has a tray icon, they might support transparency in linux... https://jdic.dev.java.net/

Somatik
A: 

its not that . . . this is happing because it is using the default GNOME theme for rendering the transparency - it has nothing to do with the image it self - this is an adobe air / gnome conflict - if you switch to a gnome theme were the default background is grey then it would be grey instead of white. It uses the system default image so even if it was set but the theme for the panel to have a BG image to make it look glossy like vista for example than it would do that. Adobe Air / Java doesn't know that you over road the theme default with transparency and therefor it is using the system default

freshfitteds
I just test this "theory" and it is indeed true
freshfitteds
A: 
Falkster