Solved

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

Posted on 2004-09-29
8
152 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
Comment Utility
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
Comment Utility
also check the following site.

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

Naeem Shehzad Ghuman
0
 

Author Comment

by:naqsh
Comment Utility
Thx Naeem - Lemme check out the links !!
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:naqsh
Comment Utility
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
Comment Utility
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
Comment Utility
:-) Ta.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now