From 53d67eed77b9e6f80855612c098fb67f259e3c7a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 1 Sep 2016 16:37:10 +0100 Subject: [PATCH] JAL-2077 less drastic exit on close --- test/jalview/gui/MouseEventDemo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jalview/gui/MouseEventDemo.java b/test/jalview/gui/MouseEventDemo.java index 3a382ca..aeed2c6 100644 --- a/test/jalview/gui/MouseEventDemo.java +++ b/test/jalview/gui/MouseEventDemo.java @@ -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(); -- 1.7.10.2