PDA

View Full Version : System tray using java




ashokformac
Apr 7, 2007, 05:23 AM
how to get system tray of mac os using java...

when i tried using ..

SystemTray tray = SystemTray.getDefaultSystemTray();

it gives the following error..

"no tray in java.library.path"

if any one knows the answer please tell me...



Wes
Apr 7, 2007, 05:50 AM
Which version of Java are you using?

Eraserhead
Apr 7, 2007, 08:19 AM
Isn't the System Tray Windows only?

Wes
Apr 7, 2007, 08:23 AM
http://java.sun.com/javase/6/docs/api/java/awt/SystemTray.html#getSystemTray()

Yeah the poster above pretty much got it, not all platforms support it.