Added system exit on mainframe dispose.

This commit is contained in:
Andrew Lalis 2020-11-09 14:02:27 +01:00
parent e5bc16a6a4
commit 5c6587386e
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,5 @@
package nl.andrewlalis.blockbookbinder.view; package nl.andrewlalis.blockbookbinder.view;
import nl.andrewlalis.blockbookbinder.control.ImportAction;
import nl.andrewlalis.blockbookbinder.model.Book; import nl.andrewlalis.blockbookbinder.model.Book;
import nl.andrewlalis.blockbookbinder.util.ApplicationProperties; import nl.andrewlalis.blockbookbinder.util.ApplicationProperties;
import nl.andrewlalis.blockbookbinder.view.about.AboutDialog; import nl.andrewlalis.blockbookbinder.view.about.AboutDialog;
@ -84,4 +83,10 @@ public class MainFrame extends JFrame {
return mainPanel; return mainPanel;
} }
@Override
public void dispose() {
super.dispose();
System.exit(0);
}
} }