Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java @ 91:cec9f6aa9398
the close button is depressed, and a application is closed.
author | oc |
---|---|
date | Mon, 19 May 2014 10:52:07 +0900 |
parents | 40d400a7ec84 |
children | 84f254d8bde4 |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri May 16 20:37:06 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Mon May 19 10:52:07 2014 +0900 @@ -168,6 +168,7 @@ scroller = new JScrollPane(outerPanel); if (isSeparateFrame) { frame = new JFrame(); + frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); if ( ! isApplet) { frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }