JAL-2077 less drastic exit on close
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Sep 2016 15:37:10 +0000 (16:37 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 1 Sep 2016 15:37:10 +0000 (16:37 +0100)
test/jalview/gui/MouseEventDemo.java

index 3a382ca..aeed2c6 100644 (file)
@@ -142,7 +142,7 @@ public class MouseEventDemo extends JPanel implements MouseListener
   {
     // Create and set up the window.
     JFrame frame = new JFrame("MouseEventDemo (C to clear)");
-    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
 
     // Create and set up the content pane.
     JComponent newContentPane = new MouseEventDemo();