本文整理了Java中javax.swing.JFrame.removeWindowListener()
方法的一些代码示例,展示了JFrame.removeWindowListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.removeWindowListener()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:removeWindowListener
暂无
代码示例来源:origin: org.codeartisans.swing-on-steroids/sos-ui-swing
@Override
public void removeHandler()
{
frame.removeWindowListener( listener );
}
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
@Override
public void dispose() {
frame.removeWindowListener(this);
view.removePropertyChangeListener(this);
}
代码示例来源:origin: igniterealtime/Spark
@Override
public void windowClosed(WindowEvent e) {
frame.removeWindowListener(this);
frame.dispose();
transcriptTask.cancel();
searchPanel.remove(vacardPanel);
}
});
代码示例来源: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: apache/sis
@Override public void windowClosed(WindowEvent e) {
frame.removeWindowListener(this);
lock.countDown();
frame.dispose();
}
});
代码示例来源:origin: Geomatys/geotoolkit
@Override public void windowClosed(final WindowEvent event) {
frame.removeWindowListener(this);
lock.countDown();
frame.dispose();
}
});
代码示例来源:origin: Geomatys/geotoolkit
/**
* Invoked when the window is closed. Tells the test suite that
* it can stop waiting.
*/
@Override
public void windowClosed(final WindowEvent event) {
frame.removeWindowListener(this);
lock.countDown();
frame.dispose();
}
代码示例来源:origin: igniterealtime/Spark
public void windowClosing(WindowEvent windowEvent) {
parent.setGlassPane(glassPane);
parent.getGlassPane().setVisible(false);
contactField.dispose();
parent.removeWindowListener(this);
}
代码示例来源:origin: org.apache.xmlgraphics/batik-test-swing
public void dispose() {
if (frame != null) {
frame.removeWindowListener(wl);
frame.setVisible(false);
}
wl = null;
if (canvas != null) {
canvas.removeGVTTreeRendererListener(irl); irl=null;
canvas.removeSVGDocumentLoaderListener(ll); ll=null;
canvas.removeUpdateManagerListener(url); url=null;
}
updateManager = null;
canvas = null;
frame = null;
}
代码示例来源:origin: org.graphstream/gs-core
public void openInAFrame(boolean on) {
if (on) {
if (frame == null) {
frame = new JFrame("GraphStream");
frame.setLayout(new BorderLayout());
frame.add(this, BorderLayout.CENTER);
frame.setSize(800, 600);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
frame.addWindowListener(this);
frame.addComponentListener(this);
frame.addKeyListener(shortcuts);
} else {
frame.setVisible(true);
}
} else {
if (frame != null) {
frame.removeComponentListener(this);
frame.removeWindowListener(this);
frame.removeKeyListener(shortcuts);
frame.remove(this);
frame.setVisible(false);
frame.dispose();
}
}
}
代码示例来源:origin: apache/batik
public void dispose() {
if (frame != null) {
frame.removeWindowListener(wl);
frame.setVisible(false);
}
wl = null;
if (canvas != null) {
canvas.removeGVTTreeRendererListener(irl); irl=null;
canvas.removeSVGDocumentLoaderListener(ll); ll=null;
canvas.removeUpdateManagerListener(url); url=null;
}
updateManager = null;
canvas = null;
frame = null;
}
代码示例来源:origin: graphstream/gs-core
public void openInAFrame(boolean on) {
if (on) {
if (frame == null) {
frame = new JFrame("GraphStream");
frame.setLayout(new BorderLayout());
frame.add(this, BorderLayout.CENTER);
frame.setSize(800, 600);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
frame.addWindowListener(this);
frame.addComponentListener(this);
frame.addKeyListener(shortcuts);
} else {
frame.setVisible(true);
}
} else {
if (frame != null) {
frame.removeComponentListener(this);
frame.removeWindowListener(this);
frame.removeKeyListener(shortcuts);
frame.remove(this);
frame.setVisible(false);
frame.dispose();
}
}
}
代码示例来源:origin: stackoverflow.com
runner.stop(); runner1.stop();
t.interrupt();t1.interrupt();
frame.removeWindowListener(this);
frame.dispose();
frame = null;
代码示例来源:origin: net.sf.squirrel-sql.plugins/graph
private void showDialogWindow(Rectangle bounds, String title)
{
if(null != _frameWindow)
{
title = _frameWindow.getTitle();
bounds = _frameWindow.getBounds();
Point locOnScreen = _frameWindow.getLocationOnScreen();
bounds.x = locOnScreen.x;
bounds.y = locOnScreen.y;
_frameWindow.setVisible(false);
_frameWindow.removeWindowListener(_windowAdapter);
_frameWindow.getContentPane().removeAll();
_frameWindow.dispose();
_frameWindow = null;
}
Frame owningFrame = GUIUtils.getOwningFrame(_session.getObjectTreeAPIOfActiveSessionWindow().getDetailTabComp());
_dlgWindow = new JDialog(owningFrame);
_dlgWindow.setTitle(title);
_dlgWindow.getContentPane().setLayout(new GridLayout(1, 1));
_dlgWindow.getContentPane().add(_contentPanel);
_dlgWindow.setBounds(bounds);
_dlgWindow.addWindowListener(_windowAdapter);
_dlgWindow.setVisible(true);
}
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
final EventListener[] l =
frame.getListeners(WindowListener.class);
frame.removeWindowListener((WindowListener)l[0]);
frame.addWindowListener(new WindowAdapter() {
@Override
代码示例来源:origin: com.github.tntim96/rhino
final EventListener[] l =
frame.getListeners(WindowListener.class);
frame.removeWindowListener((WindowListener)l[0]);
frame.addWindowListener(new WindowAdapter() {
@Override
代码示例来源:origin: com.github.jjYBdx4IL.utils/junit4-utils
jf.removeWindowListener(l);
代码示例来源:origin: com.github.jjYBdx4IL/github-test-utils
jf.removeWindowListener(l);
代码示例来源:origin: antlr/antlrworks
jFrame.removeWindowListener(wl);
jFrame.dispose();
jFrame = null;
代码示例来源:origin: sc.fiji/TrakEM2_
frame.removeWindowListener(window_listener);
frame.removeWindowFocusListener(window_listener);
frame.removeWindowStateListener(window_listener);
内容来源于网络,如有侵权,请联系作者删除!