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();