summaryrefslogtreecommitdiffstats
path: root/logo
diff options
context:
space:
mode:
authorMarko Živković <[email protected]>2014-06-13 01:03:08 +0000
committerMarko Živković <[email protected]>2014-06-13 01:03:08 +0000
commitfd590d402f1e039d4b07b80bac3da550177aa473 (patch)
tree59c5ce06828582967c37e8622f4b2b5de5dec7eb /logo
parente8d19c46aefb7378be44c704d93d3e408b443d2e (diff)
Now exits application properly when closing WelcomeScreen. (Does not leave background processes running)
git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@6 3b0d7934-f7ef-4143-9606-b51f2e2281fd
Diffstat (limited to 'logo')
-rw-r--r--logo/src/xlogo/gui/welcome/WelcomeScreen.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/logo/src/xlogo/gui/welcome/WelcomeScreen.java b/logo/src/xlogo/gui/welcome/WelcomeScreen.java
index baf9b85..1e11f25 100644
--- a/logo/src/xlogo/gui/welcome/WelcomeScreen.java
+++ b/logo/src/xlogo/gui/welcome/WelcomeScreen.java
@@ -110,13 +110,12 @@ public class WelcomeScreen extends X4SFrame {
translate("ws.error.title"),
translate("storage.could.not.store.gc"));
}
-
- System.gc();
+
super.dispose();
}
};
// Window
- frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
+ frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setIconImage(Toolkit.getDefaultToolkit().createImage(Utils.class.getResource("Icon_x4s.png")));
frame.setTitle("XLogo4Schools");