How do I show the "Application Closing .." message in Swing during the last JFrame?

While I'm looking for the best way to get out of Swing Application

between System.exit(0)

and dispose()

, I found a very good answer here . Now, what I want to add, since I'm calling in dispose()

, the current window gets deleted, but the JVM takes a few seconds to check for other open frames and streams before it exits. I want to show this small amount of time through a dialog that says: The application is closing ...
How can I achieve this?

+3


source to share


1 answer


There is a WindowUtilities class in TUS on sourceforge that I wrote that ALMOST does what you want. You can take a look at it and see if you can adapt it for your purposes.



+3


source







All Articles