Esempio n. 1
0
  protected void processWindowEvent(WindowEvent e) {
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      status = CLOSED_OPTION;
      dispose();
    }

    super.processWindowEvent(e);
  }
Esempio n. 2
0
 public void windowClosing(WindowEvent e) {
   Window w = e.getWindow();
   w.setVisible(false);
   w.dispose();
   System.exit(0);
 }