Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

How to display in system tray the icon for a java program

Hi!
 
    Here are the specs. for the program  I want to code in java
   
      1. There are two methods. start() and stop().
      2. An icon for the program is displayed in the system tray.
      3. Right-clicking the icon displays a menu that has two options - (i)start (ii)stop
      4. CLicking 'start' calls the start() method and clicking 'stop' calls the stop() method.

    How can I display the icon for a program in the system tray and create the menu that displays the     desired options? Help in the form of code or helping URLs is appreciated.

Thanks
0
naqsh
Asked:
naqsh
  • 2
  • 2
  • 2
2 Solutions
 
NaeemgCommented:
havu visited
jeans.studentenweb.org/java/trayicon/trayicon.html

may be helpful to u.

Naeem Shehzad Ghuman
0
 
NaeemgCommented:
also check the following site.

http://www.artima.com/forums/flat.jsp?forum=121&thread=57082

Naeem Shehzad Ghuman
0
 
naqshAuthor Commented:
Thx Naeem - Lemme check out the links !!
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
naqshAuthor Commented:
Naeem where would I find the API classes being used in the example at the link.

 http://www.artima.com/forums/flat.jsp?forum=121&thread=57082

Are these available as llibraries (jar files)?
0
 
DrWarezzCommented:
I think everything you need is here:
http://jeans.studentenweb.org/java/trayicon/trayicon.html

gL,
[r.D]
0
 
DrWarezzCommented:
:-) Ta.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now