While I am searching for better method to exit a Swing Application in between System.exit(0) and dispose() I found a very good answer Here.
Now what I want to add-on is, as I make a call to dispose(), the current window gets disposed but the JVM takes few more moments while checking for other open frames and threads before it gets exited. I want to show this small amount of time through a dialog saying that : Application is closing…
How can I achieve this?
While I am searching for better method to exit a Swing Application in between
Share
There is a class WindowUtilities in TUS on sourceforge that I wrote that ALMOST does what you want. You might want to take a look at it and see if you can adapt it for your purposes