I have a Swing application, and I want to provide the user with a confirmation window before the application closes when Windows shuts down, and if the user selects "Cancel", the completion process should be interrupted.
I went through a couple of discussions on the forum, but could not get a specific answer. If someone successfully fulfilled this requirement, please help me do the same.
vinee source share