+ 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?
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.
+ 2
Valen.H. Thank you😊