1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-22 13:33:18 +02:00

Change behavior of closing dialog with hitting X

https://github.com/RipMeApp/ripme/issues/1975
This commit is contained in:
Attacktive
2022-04-25 12:03:41 +09:00
committed by soloturn
parent 7262a79a8d
commit 3bf05a79c7

View File

@@ -842,7 +842,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
checkChoise.add(noButton); checkChoise.add(noButton);
JFrame.setDefaultLookAndFeelDecorated(true); JFrame.setDefaultLookAndFeelDecorated(true);
JFrame frame = new JFrame("Are you sure?"); JFrame frame = new JFrame("Are you sure?");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.add(checkChoise); frame.add(checkChoise);
frame.setSize(405, 70); frame.setSize(405, 70);
frame.setVisible(true); frame.setVisible(true);