addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.out.println("Closed"); e.getWindow().dispose(); } });
/** * @see java.awt.event.WindowAdapter#windowClosing(java.awt.event.WindowEvent) */ @Override public void windowClosing(WindowEvent e) { // TODO SWINGWORKER fix closing of main window with correct storing of preferences closeAllButSelectedDocument(((GCViewerGui)e.getWindow())); GCPreferences preferences = copyPreferencesFromGui(((GCViewerGui)e.getWindow())); preferences.store(); e.getWindow().dispose(); }
public void windowClosing(WindowEvent e) { if (running) { System.out.println("Closing"); int returnVal = serialPortInterface.shutDown(); if (returnVal > 0) System.out.println("data stream shut down successful"); System.out.println("Closed!"); } e.getWindow().dispose(); } }
@Override public void windowClosing(WindowEvent e) { if (listening) { OSCReceiver.this.stopListening(); receiver.close(); } e.getWindow().dispose(); } });
public void windowClosing(WindowEvent e) { e.getWindow().dispose(); } });
public void windowClosing(WindowEvent e) { e.getWindow().dispose(); } });
public void windowClosing(WindowEvent e) { e.getWindow().dispose(); } });
@Override public void windowClosed(WindowEvent e) { e.getWindow().removeWindowListener(this); } });
class MyFocusLostListener implements WindowStateListener { public void windowStateChanged(WindowEvent e) { if (e.getNewState() == WindowEvent.WINDOW_LOST_FOCUS) { e.getWindow().setVisible(false); } } }
/** * Listens for the main window closing, and shuts down the application. * * @param event information about the window event. */ public void windowClosing(final WindowEvent event) { if (event.getWindow() == this) { dispose(); System.exit(0); } }
public void windowOpened(WindowEvent e) { e.getWindow().removeWindowListener(this); action.run(); } public void windowClosed(WindowEvent e) {
/** * Listens for the main window closing, and shuts down the application. * * @param event information about the window event. */ @Override public void windowClosing(WindowEvent event) { if (event.getWindow() == this) { dispose(); System.exit(0); } }
public void windowClosing( WindowEvent e ) { Window w = e.getWindow(); w.setVisible( false ); } }
public void windowActivated(WindowEvent e) { app = getApplication(e.getWindow()); AccessController.doPrivileged(this); app = null; }
public void windowClosing(WindowEvent we) { JFrame jf=(JFrame) we.getWindow(); System.out.println(" Console.gui : window closing ("+jf.getSize().height+"*"+jf.getSize().width+")"); } public void windowClosed(WindowEvent we) {
/** Closes the dialog */ private void closeDialog( WindowEvent evt ) { evt.getWindow(); setVisible( false ); dispose(); }
@Override public void windowClosed(WindowEvent e) { if (e.getSource() == gui) { return; } popoutDisposed(getChannelFromWindow(e.getSource())); if (savePopoutAttributes) { Window window = e.getWindow(); dialogsAttributes.add(0, new LocationAndSize( window.getLocation(), window.getSize())); } }