How to cancel form closing using WindowAdapter ?
I've just started my first Java application. In my app, I inherits JFrame.
When the user close the form with close button, I want to show a Yes/No dialog
to give user a chance to cancel the form closing, but I can not find any
methods/properties in the event object passed to the WindowClosing method
that I can use to cancel the form closing.
Any advice would be greatly appreciated.
Thanks in advance
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center