[5195] in java-interest

home help back first fref pref prev next nref lref last post

Quiting an Applet

daemon@ATHENA.MIT.EDU (Bruno Souza - Sun do Brasil)
Wed Jan 31 20:19:35 1996

Date: Wed, 31 Jan 1996 19:29:17 -0200
From: Bruno.Souza@Brazil.Sun.COM (Bruno Souza - Sun do Brasil)
To: java-interest@java.Eng.Sun.COM



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.

Have anone experienced that? Any idea?

Thanks.

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post