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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user