javax.swing.JDialog.removeWindowListener()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(102)

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

JDialog.removeWindowListener介绍

暂无

代码示例

代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui

public void windowClosed(WindowEvent e)
  {
    dialog.removeWindowListener(this);
    dialog.dispose();
  }
});

代码示例来源:origin: info.aduna.commons/aduna-commons-swing

public void removeWindowListener(WindowListener listener) {
  if (listener != null) {
    synchronized (windowListeners) {
      windowListeners.remove(listener);
    }
    if (dialog != null) {
      dialog.removeWindowListener(listener);
    }
  }
}

代码示例来源:origin: org.nuiton.jaxx/jaxx-swing-action

@Override
  public synchronized void removeWindowListener(WindowListener l) {
    super.removeWindowListener(l);
    if (log.isDebugEnabled()) {
      log.debug("after removed (" + getWindowListeners().length + ") : " + l);
    }
  }
}

代码示例来源:origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

private void closing(){
  dialog.dispose();
  dialog.removeWindowListener( listener );
  fireClosed();
}

代码示例来源:origin: xyz.cofe/docking-frames-common

private void closing(){
  dialog.dispose();
  dialog.removeWindowListener( listener );
  fireClosed();
}

代码示例来源:origin: org.japura/japura-gui

private void backupProperties(JDialog dialog) {
 oldDefaultCloseOperation = dialog.getDefaultCloseOperation();
 dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
 oldWindowListeners = dialog.getWindowListeners();
 for (WindowListener listener : oldWindowListeners) {
  dialog.removeWindowListener(listener);
 }
}

代码示例来源:origin: net.sf.squirrel-sql.plugins/graph

private void showFrameWindow(Rectangle bounds, String title)
{
 if(null != _dlgWindow)
 {
   title = _dlgWindow.getTitle();
   bounds = _dlgWindow.getBounds();
   Point locOnScreen = _dlgWindow.getLocationOnScreen();
   bounds.x = locOnScreen.x;
   bounds.y = locOnScreen.y;
   _dlgWindow.setVisible(false);
   _dlgWindow.removeWindowListener(_windowAdapter);
   _dlgWindow.getContentPane().removeAll();
   _dlgWindow.dispose();
   _dlgWindow = null;
 }
 ImageIcon appIcon = _session.getApplication().getResources().getIcon(SquirrelResources.IImageNames.APPLICATION_ICON);
 _frameWindow = new JFrame();
 _frameWindow.setTitle(title);
 _frameWindow.setIconImage(appIcon.getImage());
 _frameWindow.getContentPane().setLayout(new GridLayout(1, 1));
 _frameWindow.getContentPane().add(_contentPanel);
 _frameWindow.setBounds(bounds);
 _frameWindow.addWindowListener(_windowAdapter);
 _frameWindow.setVisible(true);
}

代码示例来源:origin: info.aduna.commons/aduna-commons-swing

int nrWindowListeners = windowListeners.size();
for (int i = 0; i < nrWindowListeners; i++) {
  dialog.removeWindowListener(windowListeners.get(i));

代码示例来源:origin: GoldenGnu/jeveassets

private void setVisible(final boolean b) {
  if (b) {
    centerWindow();
  } else { //Memory
    for (UpdateTask task : updateTasks) {
      for (MouseListener mouseListener : task.getTextLabel().getMouseListeners()) {
        task.getTextLabel().removeMouseListener(mouseListener);
      }
    }
    jWindow.removeWindowListener(listener);
    jOK.removeActionListener(listener);
    jCancel.removeActionListener(listener);
    updateTask.removePropertyChangeListener(listener);
    if (progress != null) {
      program.getStatusPanel().removeProgress(progress);
    }
  }
  jWindow.setVisible(b);
}

相关文章

JDialog类方法