If you are using swing, you can use frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
which prevents the window from closing.
solved how to create a java program that can’t be closed on window and mac os
If you are using swing, you can use frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
which prevents the window from closing.
solved how to create a java program that can’t be closed on window and mac os