public void windowClosing(WindowEvent evt) {
   JFrame frame = (JFrame) evt.getSource();
   frame.setVisible(false);
   frame.dispose();
 }
Exemple #2
0
 public void windowClosing(WindowEvent e) {
   Window w = e.getWindow();
   w.setVisible(false);
   w.dispose();
   System.exit(0);
 }