Solved

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

Posted on 2004-09-29
8
155 Views
Last Modified: 2010-03-31
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
Comment
Question by:naqsh
  • 2
  • 2
  • 2
8 Comments
 
LVL 5

Expert Comment

by:Naeemg
ID: 12187166
havu visited
jeans.studentenweb.org/java/trayicon/trayicon.html

may be helpful to u.

Naeem Shehzad Ghuman
0
 
LVL 5

Accepted Solution

by:
Naeemg earned 38 total points
ID: 12187182
also check the following site.

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

Naeem Shehzad Ghuman
0
 

Author Comment

by:naqsh
ID: 12187701
Thx Naeem - Lemme check out the links !!
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:naqsh
ID: 12187745
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
 
LVL 9

Assisted Solution

by:DrWarezz
DrWarezz earned 37 total points
ID: 12189558
I think everything you need is here:
http://jeans.studentenweb.org/java/trayicon/trayicon.html

gL,
[r.D]
0
 
LVL 9

Expert Comment

by:DrWarezz
ID: 12446213
:-) Ta.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 91
ForLoop Example 3 49
MySQL  on Tomcat 8 46
jsp login check 12 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question