File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new frame from applet

 
Suahs Kanere
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic