From: gmungoc Date: Thu, 1 Sep 2016 15:37:10 +0000 (+0100) Subject: JAL-2077 less drastic exit on close X-Git-Tag: Release_2_10_0~51 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=53d67eed77b9e6f80855612c098fb67f259e3c7a;p=jalview.git JAL-2077 less drastic exit on close --- 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();