Every program can be closed with the use of task manager on any operating system, otherwise you can do it like this if you are dealing with swings:
setDefaultCloseOperation(DO_NOTHING);
Every program can be closed with the use of task manager on any operating system, otherwise you can do it like this if you are dealing with swings:
setDefaultCloseOperation(DO_NOTHING);