Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Minimising to System tray.

 
shri mon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i minimise my java application to the system tray so that it can do some tasks in background?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not in pure Java. You will need an ActiveX (COM) wrapper to plug into native Windows system calls.
There's probably similar systems you can use on other operating systems.
 
Rachel Swailes
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a look at JDIC it might have what you are looking for. I am using it to integrate the IE webbrowser into an application and I see on their site that there is a similar thing for the system tray.

http://jdic.dev.java.net/

Cheers,
Rachel
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shri,

You may also check theses packages :

- http://jeans.studentenweb.org/java/trayicon/trayicon.html
- http://systray.sourceforge.net/
- http://www.javaapis.com/jtray/

Best regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic