java.awt.Window.removeWindowStateListener()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(124)

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

Window.removeWindowStateListener介绍

暂无

代码示例

代码示例来源:origin: xyz.cofe/gui.swing

@Override
public void close() throws IOException {
  if(cmpt!=null && l!=null ){
    cmpt.removeWindowStateListener(l);
    cmpt = null;
    l = null;
  }
}};

代码示例来源:origin: stackoverflow.com

return;
w.removeWindowStateListener(this);
w.addWindowStateListener(this);

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@Override
public void unregisterEvents() {
  super.unregisterEvents();
  if (mHandlee != null) {
    if (mHandlee instanceof Window) {
      ((Window) mHandlee).removeWindowListener(this);
      ((Window) mHandlee).removeWindowStateListener(this);
    }
    if (mHandlee instanceof JInternalFrame) {
      ((JInternalFrame) mHandlee).removeInternalFrameListener(this);
      ((JInternalFrame) mHandlee).removePropertyChangeListener(this);
    }
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-notifications

/**
 * Dismiss currently showing balloon tooltip (if any)
 */
public static synchronized void dismiss() {
  if( null != currentBalloon ) {
    currentBalloon.setVisible( false );
    currentBalloon.stopDismissTimer();
    currentPane.remove( currentBalloon );
    currentPane.repaint();
    currentPane.removeComponentListener( listener );
    if( null != ownerWindow ) {
      ownerWindow.removeWindowStateListener(windowListener);
    }
    currentBalloon.content.removeMouseListener (currentBalloon.mouseListener);
    currentBalloon = null;
    currentPane = null;
    listener = null;
    ownerWindow = null;
    windowListener = null;
  }
}

相关文章

Window类方法