Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Dissapearing JDic tray icon

A bug in JDic (present in 0.8.6) on Windows causes the tray icon to appear and disappear immediately after, if the SystemTray instance is not completely initialized before use. Unfortunately, SystemTray.getDefaultSystemTray() returns an instance that is not completely intialized. Since there is no way to test if the instance is initialized, a good trick is to instantiate the SystemTray instance as a static field, and not as a local variable inside a method. That way, the instance will be completely initialized before use.

See an example in System Tray.


Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  workaround/jdic_disappearing_tray_icon.txt · Last modified: 2005/02/13 20:34 by (gojko)
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources

Sedo - Buy and Sell Domain Names and Websites project info: Statistics for project etracker� web controlling instead of log file analysis