javax.swing.JFrame.getWindowListeners()方法的使用及代码示例

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

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

JFrame.getWindowListeners介绍

暂无

代码示例

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

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

代码示例来源:origin: JChemPaint/jchempaint

/**
   *  Closes the current frame
   */
  public void actionPerformed(ActionEvent e) {
   JFrame jFrame = (JFrame) jcpPanel.getTopLevelContainer();
   WindowListener[] wls = jFrame.getWindowListeners();
   wls[0].windowClosing(new WindowEvent(jFrame, WindowEvent.WINDOW_CLOSING));
  }
}

代码示例来源:origin: com.github.jjYBdx4IL.utils/junit4-utils

for (WindowListener l : jf.getWindowListeners()) {
  jf.removeWindowListener(l);

代码示例来源:origin: com.github.jjYBdx4IL/github-test-utils

for (WindowListener l : jf.getWindowListeners()) {
  jf.removeWindowListener(l);

代码示例来源:origin: com.github.waikato/fcms-widgets

listeners = jframe.getWindowListeners();
event     = new WindowEvent(jframe, WindowEvent.WINDOW_CLOSED);
for (i = 0; i < listeners.length; i++)

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

listeners = jframe.getWindowListeners();
event     = new WindowEvent(jframe, WindowEvent.WINDOW_CLOSED);
for (i = 0; i < listeners.length; i++)

代码示例来源:origin: Waikato/weka-trunk

listeners = jframe.getWindowListeners();
event     = new WindowEvent(jframe, WindowEvent.WINDOW_CLOSED);
for (i = 0; i < listeners.length; i++)

相关文章

JFrame类方法