Search code examples
javaswtsystem-traytrayicon

SWT for tray icon in Swing application


The tray icon implementation in Java 1.6 has its limitations, e.g. no support for the alpha channel in the graphic icons. Did anybody tried to use SWT to support a native looking tray icon? Is that possible at all?


Solution

  • OK, I gave it a try: it works fine on Windows but on Linux it crashes as soon as I close a JFrame or JDialog. It looks like SWT gets confused by the AWT windows on its Linux implementation.