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