+ 1

Why?

In java swing, "EXIT_ON_CLOSE" is a closing action. But if we click on the cross symbol of a window then it close automatically. Then why we use the "EXIT_ON_CLOSE" action?

5th Nov 2020, 9:27 AM
Manash Saikia [ 45% Active ]
Manash Saikia [ 45% Active ] - avatar
2 Antworten
+ 10
The cross doesn't kill the process, it just sends a close event, and your code just moves on and terminates, on the other case, the code is forcefully killed.
5th Nov 2020, 9:38 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Valen.H. Thank you😊
5th Nov 2020, 12:15 PM
Manash Saikia [ 45% Active ]
Manash Saikia [ 45% Active ] - avatar