And while I’m here… Is it possible to add a “message” on the system tray icon ? (like when you deconnect something of the computer, with a cross to close the message…)
Another question… I want to use the system tray icon to control the state of the main window. But I’m not able to access to its properties. I have tried to use the findParentComponentOfClass but that doesn’t work, I got a null pointer. I have added the TaskbarIcon component to the desktop…
[quote=“Wolfen”]Another question… I want to use the system tray icon to control the state of the main window. But I’m not able to access to its properties. I have tried to use the findParentComponentOfClass but that doesn’t work, I got a null pointer. I have added the TaskbarIcon component to the desktop…
Some ideas ? Thanks [/quote]
…erm, why not just pass your tray icon a pointer to the main window when it’s created…?