Archive for the ‘ Java ’ Category

HOW TO: Make a System Tray Icon in Java in 3 Steps

to Create System Tray we need 3 things:

1)PopupMenu

2) Menu Items

3)  TrayIcon

Step # 1 :-

so, i will start with PopupMenu

PopupMenu popMenu= new PopupMenu(); 


Step # 2 :-

now we go to step #2 creating menu items, every menu have menu items that you click on it


MenuItem item1 = new MenuItem("Exit");  //here i created menu item named item1 and the text will appear in this menu item is "Exit"

Continue reading