本文整理了Java中javax.swing.JFrame.getWindowListeners()
方法的一些代码示例,展示了JFrame.getWindowListeners()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.getWindowListeners()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称: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++)
内容来源于网络,如有侵权,请联系作者删除!