Пример #1
0
  protected void processWindowEvent(WindowEvent e) {
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      status = CLOSED_OPTION;
      dispose();
    }

    super.processWindowEvent(e);
  }
Пример #2
0
 @Override
 /** Closing the application */
 protected void processWindowEvent(WindowEvent e) {
   super.processWindowEvent(e);
   if (e.getID() == WindowEvent.WINDOW_CLOSING) {
     System.exit(0);
   }
 }
Пример #3
0
 @Override
 protected void processWindowEvent(final WindowEvent e) {
   if (e.getID() == WindowEvent.WINDOW_CLOSING) {
     if (!plugin) {
       dispose();
       System.exit(0);
     } else {
       saveWindowState();
       setVisible(false);
     }
   } else {
     super.processWindowEvent(e);
   }
 }
Пример #4
0
 protected void processWindowEvent(WindowEvent e) {
   if (e.getID() == WindowEvent.WINDOW_CLOSING) {
     cancel();
   }
   super.processWindowEvent(e);
 }
Пример #5
0
    /**
     * Repacks the window each time it is displayed to adjust size to fit wording and buttons.
     *
     * @param e event.
     */
    protected void processWindowEvent(WindowEvent e) {
      super.processWindowEvent(e);

      if (e.getID() == WindowEvent.WINDOW_OPENED) pack();
    }
Пример #6
0
 protected void processWindowEvent(WindowEvent we) {
   if (we.getID() == we.WINDOW_CLOSING) {
     r = JOptionPane.showConfirmDialog(null, "WARNNING", "EXIT", JOptionPane.WARNING_MESSAGE);
     if (r == JOptionPane.YES_OPTION) dispose();
   }
 }
 /** Overridden so we can exit when window is closed */
 protected void processWindowEvent(WindowEvent e) {
   super.processWindowEvent(e);
   if (e.getID() == WindowEvent.WINDOW_CLOSING) {
     System.exit(0);
   }
 }