Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to create SysTray icon using Java?

  Asked By: Kuhaylah    Date: Nov 10    Category: Java    Views: 1113
  

I'm developing a network monitor application, it will
automatically check the connectivity of the configured
IP Addresses every 30 secs. If there is any error, it
will popup alert messages.

Everything is ok but the problem is i don't want to
spare a Taskbar button always, i need to put some icon
in the System Tray, so if any problem occurs the
SysTray icon should notify the user about the problem.

Is there any solution to create a SysTray icon in
Windows using Java?

Share: 

 

5 Answers Found

 
Answer #1    Answered By: Sean Grant     Answered On: Nov 10

I don't think that standard java  supports this. However, I do believe
that the SWT graphics package from IBM (for java) does.

 
Answer #2    Answered By: Huette Miller     Answered On: Nov 10

This is possible in Tiger, see an article on sys tray on sun. If I am not
wrong then there was a complete tech tip in last month sun technology
letter. They have introduced a complete api to support windows desktop
facility including, IE, Sys Tray and many more.

 
Answer #3    Answered By: Maria Miller     Answered On: Nov 10

Im not able to find any link about SysTray
enhancements in Tiger... But i hv find some JNI
methods to put  SysTray icon  using java  on this
following URL...

http://jeans.studentenweb.org/java/trayicon/

 
Answer #4    Answered By: Elias Turner     Answered On: Nov 10

Ok I have spent some time to explore my browser history, here are exact
links that I told you,
The following link has the demo , hit for a JWS demo run , satisfy yourself
and then write for you with org.jdesktop.jdic
https://jdic.dev.java.net/

This is the image showing exactly what you want.

https://jdic.dev.java.net/resource/trayicon.gif

 
Answer #5    Answered By: Kifah Malik     Answered On: Nov 10

regarding your problem  on having a Java
Application running on system  tray instead taks bar.
I don't know whether that is possible using Java or not, but I have a method
which might be of some use to you. Whenever you create  a JWindow, according to
my knowledge, no task bar button  is generated, so you just make a JWindow and
just make it transparent and use it as an application.
And in that give an option for the user  to use small mode, which runs just above
the system tray. Hope you understood this method.

 
Didn't find what you were looking for? Find more on How to create SysTray icon using Java? Or get search suggestion and latest updates.




Tagged: