Hi can i get a java program to only be vissible in the system tray icon bar?
Printable View
Hi can i get a java program to only be vissible in the system tray icon bar?
This is not really Java's responsibility. Java is 'platform neutral', it doesn't support any particular operating system, so it doesn't deal with such things - not all OS's have system tray icon bars...
Either use a script or batch for the system you have in mind, that puts the Java application into the system tray icon bar (sounds like Windows?) - via a shortcut, or whatever, or (and I wouldn't recommend this option, except as an exercise) use the Java Native Interface (JNI) to write a DLL that your Java app can call to do the OS specific munging to put it wherever you want it.
We could do that, but it would be wrong...
Richard Nixon
it's been done before, but it's a windows only thing. you should put code in your app to check that it isnt going to break on sytems that dont have a tray (i.e. not Microsoft). dont rely on the tray icon. have a look for an already-written module that will put the icon you require
Try JDIC ( https://jdic.dev.java.net/ ). It has an implementation of tray icons in Java.Quote:
Originally Posted by ZwOOp