[5341] in java-interest
Re: Quitting an Applet
daemon@ATHENA.MIT.EDU (Gavin Aiken)
Tue Feb 6 10:39:45 1996
From: Gavin Aiken <gavin@theboard.newsquest.co.uk>
To: java-interest@java.sun.com
Date: Thu, 1 Feb 1996 20:06:31 +0000 (GMT)
> This should be simple, but I can't find the answer!
> How do I quit an applet? On the examples that I've seen, it is used the
> System.exit() method, but this is a security problem, and it generates
> a security exception (as expected) when it's called. I've tried calling
> Applet.destroy() or Applet.stop(), to no avail.
> It would help to know how to quit an applet that opens a new window or
> frame, but, if it is possible, I'd like to quit an applet inside the
> browser.
> A related topic (also shows that there're people that don't know the
> above :-) is how do you (the user, not the programmer) quits an applet
> that was loaded, opened it's own frame, and *doesn't have* a "quit"
> button??? This is under Netscape2b5, Solaris 2.4 version (I haven't
> tried any other version). I end up with lots of frames just hanging
> around my desktop, and doing a "quit" on the window does not work. Even
> if I clear the disk & memory cache (what wouldn't be a good idea
> anyway) the applets won't go away. I have to quit netscape (what is
> even a worst idea), or just let this unwanted windows hang around.
I've also had this problem with frames created by applets, eg some
of the applets on the gui tutorial trail. Once created, there doesn't
seem to be any way of getting rid of them except quitting Netscape.
What are we doing wrong? (I'm also using Netscape b5 on a Sparc running
solaris 2.4)
cheers,
Gavin Aiken
-----------------------------------------------------------------------------
Address: Gavin Aiken | Email: gavin@newsquest.co.uk
IT Dept, RRN Lancs | Web: www.newsquest.co.uk
Newspaper House | Work: +44 (0)1254 678678
High Street | Fax: +44 (0)1254 673347
Blackburn | Home: +44 (0)1254 812956
-----------------------------------------------------------------------------
*finger gavin@theboard.reednews.co.uk for PGP Public Key*
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com