From 2cabb8cf883c433170dfc8884e7155396c61e6c4 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 26 Jul 2017 15:23:22 -0700 Subject: [PATCH] Add exit on close. --- src/org/nwapw/abacus/window/Window.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/nwapw/abacus/window/Window.java b/src/org/nwapw/abacus/window/Window.java index 520d12e..12ecda5 100644 --- a/src/org/nwapw/abacus/window/Window.java +++ b/src/org/nwapw/abacus/window/Window.java @@ -120,6 +120,7 @@ public class Window extends JFrame { history = ""; lastOutput = ""; + setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); setSize(640, 480); inputField = new JTextField();