java.awt.TrayIcon.removeActionListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(125)

本文整理了Java中java.awt.TrayIcon.removeActionListener()方法的一些代码示例,展示了TrayIcon.removeActionListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TrayIcon.removeActionListener()方法的具体详情如下:
包路径:java.awt.TrayIcon
类名称:TrayIcon
方法名:removeActionListener

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

相关文章