Iconifying JFrame

I have an application that runs in Windows only. I would like to iconify the main window (JFrame) but still have the application running. We would like to have it show the icon on the taskbar where all the little icons of deamons and applications such as Instant Messenger are. Is there a way to do that?

Thanks!

[325 byte] By [lgarcia3a] at [2007-11-26 17:01:42]
# 1
This library worked well for me. http://jeans.studentenweb.org/java/trayicon/
Rannica at 2007-7-8 23:29:27 > top of Java-index,Desktop,Core GUI APIs...
# 2

I'm guessing you mean the system tray. If so, see http://java.sun.com/javase/6/docs/api/java/awt/SystemTray.html

You can hide the window upon iconification (so that it does not appear in the taskbar) by calling

frame.setVisible(false);

Cheers

duckbilla at 2007-7-8 23:29:27 > top of Java-index,Desktop,Core GUI APIs...