added windowlistener (can now close the frame by window controls)
authorkleing
Thu, 25 Oct 2001 16:09:39 +0200
changeset 11931 a5d1c9b34900
parent 11930 1accec985349
child 11932 c1c4890a1ecb
added windowlistener (can now close the frame by window controls)
lib/browser/GraphBrowser/GraphBrowserFrame.java
--- a/lib/browser/GraphBrowser/GraphBrowserFrame.java	Thu Oct 25 02:13:02 2001 +0200
+++ b/lib/browser/GraphBrowser/GraphBrowserFrame.java	Thu Oct 25 16:09:39 2001 +0200
@@ -117,5 +117,10 @@
 		mb.add(m1);
 		setMenuBar(mb);
 		add("Center", br);
+    addWindowListener( new WindowAdapter() {
+      public void windowClosing(WindowEvent e) {
+        System.exit(0);
+      }
+    });
 	}
 }