Package com.jeans.trayicon

Examples of com.jeans.trayicon.TrayIconPopupSimpleItem.addActionListener()


                        }
                    });

                TrayIconPopup popup = new TrayIconPopup("Menu");
                TrayIconPopupSimpleItem showPopup = new TrayIconPopupSimpleItem("Show");
                showPopup.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ev) {
                            trayIcon.setVisible(false);
                            activeListFrame.show();
                        }
                    });
View Full Code Here


                        }
                    });
                showPopup.setDefault(true);
                popup.addMenuItem(showPopup);
                TrayIconPopupSimpleItem autoUpdatePopup = new TrayIconPopupSimpleItem("AutoUpdate");
                autoUpdatePopup.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ev) {
                            autoUpdateFrame.show();
                            autoUpdateFrame.toFront();
                        }
                    });
View Full Code Here

                        }
                    });
                popup.addMenuItem(autoUpdatePopup);
                popup.addMenuItem(new TrayIconPopupSeparator());
                TrayIconPopupSimpleItem exitPopup = new TrayIconPopupSimpleItem("Exit");
                exitPopup.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ev) {
                            exit();
                        }
                    });
                popup.addMenuItem(exitPopup);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.