|
-
HELP! -- getting a JApplet to get notified when a JFrame is closed...
Hi, I'm programming an application for my company which requires that my JApplet create an instance of a JFrame. I have both the applet and frame completed, but I can't figure out how to get the JApplet to become notifed when the instance of JFrame is closed by the user...
I tried putting a listener on the JFrame, but I couldn't figure out how to look for when the JFrame was closed by the user.
Another method I tried was setting the focus on the JFrame to freeze operation of the Applet until the Frame lost focus, but I couldn't get that to work..
Any Suggestions and help would be greatly appreciated.
here is my code which creates the JFrame in the applet...
(QuadCharts is a JFrame)
QuadCharts quadFrm = new QuadCharts(slideName, chartNames);
quadFrm.show();
ideally, after I call show, i wan't the JApplet to stop and waith for the JFrame to close, in order to perform a set of operations when the Frame has completed its tasks.
Thanks!
nullkill
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks