Skip to content
Advertisement

How do I put a Java app in the system tray?

I have a little control-panel, just a little application that I made. I would like to minimize/put the control-panel up/down with the systemicons, together with battery life, date, networks etc.

Anyone that can give me a clue, link to a tutorial or something to read?

Advertisement

Answer

As of Java 6, this is supported in the SystemTray and TrayIcon classes. SystemTray has a pretty extensive example in its Javadocs:

JavaScript

You could also check out this article, or this tech tip.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement