public boolean touchUp (int x, int y, int pointer, int button) { ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_LOST_FOCUS)); ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_GAINED_FOCUS)); ParticleEditor.this.requestFocusInWindow(); return false; }
public boolean touchUp (int x, int y, int pointer, int button) { ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_LOST_FOCUS)); ParticleEditor.this.dispatchEvent(new WindowEvent(ParticleEditor.this, WindowEvent.WINDOW_GAINED_FOCUS)); ParticleEditor.this.requestFocusInWindow(); return false; }
public void actionPerformed(final ActionEvent e) { // TODO SWINGWORKER does this really close and dispose the window? WindowEvent windowClosing = new WindowEvent(frame, WindowEvent.WINDOW_CLOSING); frame.dispatchEvent(windowClosing); }
f.dispatchEvent(new WindowEvent( f, WindowEvent.WINDOW_CLOSING));
passSomeTime(); this.setVisible(false); this.dispatchEvent(new WindowEvent( this, WindowEvent.WINDOW_CLOSING)); this.dispose();
} else if ("exit".equals(command)) { Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent( new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
public void actionPerformed(ActionEvent e) { DialogClose.this.setVisible(false); DialogClose.this.dispatchEvent(new WindowEvent( DialogClose.this, WindowEvent.WINDOW_CLOSING));
dialog.dispatchEvent(new WindowEvent( dialog, WindowEvent.WINDOW_CLOSING));
@Override public void actionPerformed(ActionEvent e) { dialog.dispatchEvent(new WindowEvent(dialog, WindowEvent.WINDOW_CLOSING)); } }
@Override public void actionPerformed(ActionEvent ev) { Object source = ev.getSource(); if (source == aboutMenuItem) { aboutDialog.setVisible(true); } else if (source == helpMenuItem) { JOptionPane.showMessageDialog(CpmFrame.this, CpmPanel.HELP_MESSAGE, "Collection Processing Engine Configurator Help", JOptionPane.PLAIN_MESSAGE); } else if (source == exitMenuItem) { this.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); } }
@Override public void actionPerformed(ActionEvent e) { dispatchEvent(new WindowEvent(ManageAddOnsDialog.this, WindowEvent.WINDOW_CLOSING)); } };
/** * Handling the closing of the window and thus finishing the game. There may be game * specific issues that must be handled in this method. */ protected void closeWindow(){ processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); } /**
@Override public void actionPerformed(ActionEvent e) { dialog.dispatchEvent(new WindowEvent(dialog, WindowEvent.WINDOW_CLOSING)); } }
@Override public void actionPerformed(ActionEvent e) { dialog.dispatchEvent( new WindowEvent(dialog, WindowEvent.WINDOW_CLOSING )); } };
@Override public void actionPerformed(ActionEvent e) { Window window = SubstanceTitlePane.this.getWindow(); if (window != null) { window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING)); } } }
@Override public void actionPerformed(ActionEvent e) { if (window == null) return; window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING)); }
private static void quitAction () { WindowEvent wev = new WindowEvent(frame, WindowEvent.WINDOW_CLOSING); Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(wev); keysDown.remove(KeyEvent.VK_META); keysDown.remove(KeyEvent.VK_CONTROL); keysDown.remove(KeyEvent.VK_Q); }
private void continueButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_continueButtonActionPerformed continueOk(fc.getSelectedFile().getPath()); dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); dispose(); }//GEN-LAST:event_continueButtonActionPerformed
/** * closes the window, i.e., if the parent is not null and implements the * WindowListener interface it calls the windowClosing method */ public void close() { if (getParentInternalFrame() != null) { getParentInternalFrame().doDefaultCloseAction(); } else if (getParentFrame() != null) { ((Window) getParentFrame()).dispatchEvent(new WindowEvent( getParentFrame(), WindowEvent.WINDOW_CLOSING)); } }
/** * closes the window, i.e., if the parent is not null and implements the * WindowListener interface it calls the windowClosing method */ public void close() { if (getParentInternalFrame() != null) { getParentInternalFrame().doDefaultCloseAction(); } else if (getParentFrame() != null) { ((Window) getParentFrame()).dispatchEvent(new WindowEvent( getParentFrame(), WindowEvent.WINDOW_CLOSING)); } }