Programamtic access to the notification area (aka system tray)

MidnightJava

Registered
I'd like to add items to the notification area programmatically, preferably with Java. In J2SE 6 I can do this with the SystemTray class. Unfortunately J2SE 6 on Mac is not available (other than the developer pre-release, which I can't assume my users have) and probably won't be for some time.

Can someone point me to how I can do this with Cocoa? I've spent some time looking through the documentation, but I can't see any API that lets you do this. It would be really great to have a Java API, but even Objective C would be better than what I've found so far.

In a related question, I've heard that Cocoa has a "Java bridge" whereby you can call Cocoa libraries via Java. In the documentation on the ADC site I see some Java API info in the Cocoa Reference section, but the APIs are deprecated and it says to use the Objective C APIs. So is Java in Cocoa no longer supported, or am I looking in the wrong place?

-Mark
 
Back
Top