diff --git a/src/main/java/ai/nets/samj/gui/MainGUI.java b/src/main/java/ai/nets/samj/gui/MainGUI.java index 92c8056..6d61c2d 100644 --- a/src/main/java/ai/nets/samj/gui/MainGUI.java +++ b/src/main/java/ai/nets/samj/gui/MainGUI.java @@ -112,7 +112,7 @@ public MainGUI(List modelList, ConsumerInterface consumer) { drawerPanel = ModelDrawerPanel.create(DRAWER_HORIZONTAL_SIZE, this.modelDrawerListener); - setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); + setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); cmbModels.getButton().addActionListener(e -> toggleDrawer()); go.addActionListener(e -> loadModel());