File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes new frame from applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "new frame from applet" Watch "new frame from applet" New topic

new frame from applet

Suahs Kanere

Joined: Jul 15, 2001
Posts: 1
How can I close the new Frame which is opened from applet by cliking a button on it. I created frame inner class which implements Window listener and implemented the interfaces in the inner class. Applet opens up the window and show the contents in the frame. But can not close it. When inner class frmae is compiled as an application works fine.
Lucas Richardson
Ranch Hand

Joined: Jul 08, 2001
Posts: 32
Applets shouldn't need a window listener, they should know how to close on their own. Are you just trying to close the window using the button that's part of the frame in the upper right hand corner, or are you trying to create your own button to do it?
cory malcolm

Joined: Jul 15, 2001
Posts: 2
Hi,, close your applet "appplication" ,,, try JDesktopPane as your GUI in the applet,, it will not close the applet but should close your data contained within JDesktopPane,,Bye for now,,cory
I agree. Here's the link:
subject: new frame from applet
It's not a secret anymore!