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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL