From 5c6587386e249b33eb2cb2bf72418f2b586a20a6 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 9 Nov 2020 14:02:27 +0100 Subject: [PATCH] Added system exit on mainframe dispose. --- .../nl/andrewlalis/blockbookbinder/view/MainFrame.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/nl/andrewlalis/blockbookbinder/view/MainFrame.java b/src/main/java/nl/andrewlalis/blockbookbinder/view/MainFrame.java index 9c5bbfb..b99f662 100644 --- a/src/main/java/nl/andrewlalis/blockbookbinder/view/MainFrame.java +++ b/src/main/java/nl/andrewlalis/blockbookbinder/view/MainFrame.java @@ -1,6 +1,5 @@ package nl.andrewlalis.blockbookbinder.view; -import nl.andrewlalis.blockbookbinder.control.ImportAction; import nl.andrewlalis.blockbookbinder.model.Book; import nl.andrewlalis.blockbookbinder.util.ApplicationProperties; import nl.andrewlalis.blockbookbinder.view.about.AboutDialog; @@ -84,4 +83,10 @@ public class MainFrame extends JFrame { return mainPanel; } + + @Override + public void dispose() { + super.dispose(); + System.exit(0); + } }