Can a JFrame dispose itself?
Hi, I am writing an app and I would like for a JPanel to destroy the JFrame that it's embedded in. At the moment, I am doing a dispose on the frame. Is there any way that a JPanel can call dispose() on the frame it is embedded in?
I have tried the following, but it does nothing...
This compiles but doesn't close the window.
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