jQuery in Action, 2nd edition
The moose likes Applets and the fly likes Applet closing all browser windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Applet closing all browser windows" Watch "Applet closing all browser windows" New topic
Author

Applet closing all browser windows

Robert Sullivan
Greenhorn

Joined: Jul 03, 2001
Posts: 6
We are running an applet in IE 5.5 and above. From our home page we open a new browser window which contains the <OBJECT> tag to load the applet. When we close the applet window the applet does a System.exit(0) which causes both browser windows to close. If I leave out the System.exit(0) the applet window closes and home page browser does not close but the applet seems to still be running as the amount of memory does not go down and the Java console remains up. If I try to start the applet again from the home page browser the applet starts to come up but hangs. How can I get the applet to gracefully go away to free up the memory but not close the home page browser window?
shaun barker
Greenhorn

Joined: Feb 12, 2004
Posts: 1
Was wondering if you had found a way of getting round this I have exactly the same problem - one browser window contains our applet and when it closes it closes the parent browser window? Any ideas?
Cheers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet closing all browser windows
 
Similar Threads
how to close an html window by clicking an applet button ?
Swing Memory Issue
JApplet
How to Close an application
applet calling Servlet