Package com.jeans.trayicon

Examples of com.jeans.trayicon.TrayIconPopup


                            trayIcon.setVisible(false);
                            activeListFrame.show();
                        }
                    });

                TrayIconPopup popup = new TrayIconPopup("Menu");
                TrayIconPopupSimpleItem showPopup = new TrayIconPopupSimpleItem("Show");
                showPopup.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ev) {
                            trayIcon.setVisible(false);
                            activeListFrame.show();
                        }
                    });
                showPopup.setDefault(true);
                popup.addMenuItem(showPopup);
                TrayIconPopupSimpleItem autoUpdatePopup = new TrayIconPopupSimpleItem("AutoUpdate");
                autoUpdatePopup.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ev) {
                            autoUpdateFrame.show();
                            autoUpdateFrame.toFront();
                        }
                    });
                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);
                trayIcon.setPopup(popup);
            } catch (Exception e) {
            }
        }
        ClientConfiguration conf = ClientConfiguration.getDefault();
View Full Code Here

TOP

Related Classes of com.jeans.trayicon.TrayIconPopup

Copyright © 2018 www.massapicom. 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.