130131132133134135136137138139140
f.pack(); f.setVisible(true); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { synchronized (f) { f.notifyAll(); } } }); synchronized (f) { try {