🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3448

Re: Destroying applets in Netscape Communicator...

#3448
From: Rich Wilkman
Date: Wed, 17 Dec 1997 00:00
40 lines
2094 bytes
Dhruva:

Netscape (and IE) call stop() when you navigate away.  I don't think you
can get rid of the frame but you can try hiding it with a setVisible()
call inside stop().  I'd pair that up with some flag to check on in the
start(), since a navigation back to that page will try to use the applet
that is loaded and not reload again from the server.

System.exit() means to close out the VM and will require the browser to
shut down to do it.  The Java VM, once loaded, stays around.

-Rich

Dhruva Reddy wrote:
> 
> Hello all,
> 
> I have created an applet that spawns a window.  When I run it in
> Netscape Communicator (with the JDK 1.1 patch), it does not let me
> destroy the window and exit the program unless I exit Netscape itsself.
> I have tried handling the Window Closing event with both dispose() and
> System.exit(0), but to no avail.  The window stays up even if I point to
> another page.  It worked fine in JBuilder's applet tester with no event
> handling code.
> 
> I vaguely remember reading something about Netscape's caching system
> resulting in an undesirably tenacious hold on applets.  Could this have
> something to do with it?
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> Dhruva Reddy
> --
> -----------------------------------------------------------
> Dhruva B. Reddy                mailto:dreddy@cgi.com
> Carnegie Group, Inc.           707 17th Street, Suite 2100
> (303) 295 0366 x336            Denver, CO 80202, USA
> -----------------------------------------------------------
Technical Details
Message-ID: <349801F1.8C3706B5@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3497CF4C.B4D0CD1A@cgi.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,5dc33f5587f8016f
X-Google-Attributes: gid1089d0,public
From: Rich Wilkman <rwilkman@corp.borland.com>
Subject: Re: Destroying applets in Netscape Communicator...
Date: 1997/12/17
Message-ID: <349801F1.8C3706B5@corp.borland.com>
X-Deja-AN: 299060660
Content-Transfer-Encoding: 7bit
References: <3497CF4C.B4D0CD1A@cgi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.api