|
-
February 3rd, 2005, 04:19 PM
#1
System Tray Icon
Hi can i get a java program to only be vissible in the system tray icon bar?
-
February 3rd, 2005, 04:54 PM
#2
Re: System Tray Icon
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
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
February 4th, 2005, 07:13 PM
#3
Re: System Tray Icon
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
-
February 5th, 2005, 12:40 PM
#4
Re: System Tray Icon
 Originally Posted by ZwOOp
Hi can i get a java program to only be vissible in the system tray icon bar?
Try JDIC ( https://jdic.dev.java.net/ ). It has an implementation of tray icons in Java.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|