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.