本文整理了Java中java.awt.TrayIcon.removeActionListener()
方法的一些代码示例,展示了TrayIcon.removeActionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TrayIcon.removeActionListener()
方法的具体详情如下:
包路径:java.awt.TrayIcon
类名称:TrayIcon
方法名:removeActionListener
暂无
代码示例来源:origin: Nilhcem/FakeSMTP
@Override
public void actionPerformed(ActionEvent ae) {
int state = frame.getExtendedState();
state &= ~Frame.ICONIFIED;
frame.setExtendedState(state);
frame.setVisible(true);
tray.remove(trayIcon);
trayIcon.removeActionListener(this);
}
});
代码示例来源:origin: mguessan/davmail
@Override
protected void createAndShowGUI() {
System.setProperty("apple.laf.useScreenMenuBar", "true");
super.createAndShowGUI();
trayIcon.removeActionListener(settingsListener);
try {
OSXAdapter.setAboutHandler(this, AwtGatewayTray.class.getDeclaredMethod("about", (Class[]) null));
OSXAdapter.setPreferencesHandler(this, AwtGatewayTray.class.getDeclaredMethod("preferences", (Class[]) null));
OSXAdapter.setQuitHandler(this, OSXAwtGatewayTray.class.getDeclaredMethod("quit", (Class[]) null));
} catch (Exception e) {
DavGatewayTray.error(new BundleMessage("LOG_ERROR_LOADING_OSXADAPTER"), e);
}
}
代码示例来源:origin: mucommander/mucommander
trayIcon.removeActionListener(this);
内容来源于网络,如有侵权,请联系作者删除!