protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { switch(defaultCloseOperation) { ... case EXIT_ON_CLOSE: // This needs to match the checkExit call in // setDefaultCloseOperation System.exit(0); break; } } }
@Override protected void processWindowEvent(WindowEvent e) { if(e.getID() == WindowEvent.WINDOW_CLOSING){ System.out.println("Windows is closing"); } super.processWindowEvent(e); }
/** Overridden to stop the application on a closing window. */ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } } public synchronized void setTitle(String title) {
@Override protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } } @Override
/** Overridden to stop the application on a closing window. */ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
/** Overridden to stop the application on a closing window. */ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }
public static final com.jogamp.newt.event.WindowEvent createWindowEvent(final java.awt.event.WindowEvent event, final NativeSurfaceHolder sourceHolder) { final short newtType = eventTypeAWT2NEWT(event.getID()); if( (short)0 != newtType ) { return new com.jogamp.newt.event.WindowEvent(newtType, sourceHolder, System.currentTimeMillis()); } return null; // no mapping .. }
public void windowClosing(WindowEvent e) { ActionEvent actionEvent = new ActionEvent(e.getSource(), e.getID(), "WINDOW_CLOSING"); action.actionPerformed(actionEvent); } });
public void windowClosing(WindowEvent e) { ActionEvent actionEvent = new ActionEvent(e.getSource(), e.getID(), "WINDOW_CLOSING"); action.actionPerformed(actionEvent); } });
/** * Overridden so we can exit when window is closed */ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { actionExit(); } }
/**Overridden so we can exit when window is closed*/ protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { cancel(); } super.processWindowEvent(e); }
/** * Overridden so we can exit when window is closed. */ protected void processWindowEvent(final WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { exit(); } }
public void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); int id = e.getID(); if (id==WindowEvent.WINDOW_CLOSING) close(); }
@Override protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { cancel(); } super.processWindowEvent(e); }
protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { dispose(); } super.processWindowEvent(e); }
/** * {@inheritDoc} */ protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { cancel(); } super.processWindowEvent(e); }
protected void processWindowEvent(WindowEvent windowEvent) { switch (windowEvent.getID()) { case WindowEvent.WINDOW_CLOSING: tryToDispose(windowEvent); break; case WindowEvent.WINDOW_CLOSED: close(windowEvent); break; default: super.processWindowEvent(windowEvent); break; } }
@Override protected void processWindowEvent(WindowEvent e){ super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_DEACTIVATED){ GUIPreferences guip = GUIPreferences.getInstance(); guip.setMechSelectorUnitType(comboUnitType.getSelectedIndex()); guip.setMechSelectorWeightClass(comboWeight.getSelectedIndex()); guip.setMechSelectorRulesLevels(Arrays.toString(lstTechLevel.getSelectedIndices())); guip.setMechSelectorSizeHeight(getSize().height); guip.setMechSelectorSizeWidth(getSize().width); } }