[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • 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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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