Solved

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

Posted on 2004-09-29
8
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 77
Adding multiple JVM environments to RedHat 6 7 70
Running JavaFX on the Raspberry Pi 27 150
Java Inheritance super keyword use 8 39
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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 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:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

730 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