Article View: borland.public.jbuilder.java.swing
Article #12863How to exit from Applet
From: Vasudevan Srinivasan
Date: Tue, 27 Oct 1998 00:00
Date: Tue, 27 Oct 1998 00:00
24 lines
1270 bytes
1270 bytes
i have a swingbased applet with a menuitem Exit. From netscape or ie
when i click this menuitem it throws up an error with the following
stack:
Exception occurred during event dispatching:
sun.applet.AppletSecurityException: checkexit
at sun.applet.AppletSecurity.checkExit(AppletSecurity.java:239)
at java.lang.Runtime.exit(Runtime.java:83)
at java.lang.System.exit(System.java:488)
.....
my code in exit event is:
System.exit(0);
this works well appletviewer.
my applet is not signed. may be is it because of this ? is there any
other way to exit (or close) an applet ? (the question itself maynot be
sensible since, where can the applet exit TO, from a browser?!) but i
would like to know the standard practice of quitting an applet from
browser.
Thanks
Vasu
Technical Details
Message-ID:
<36362227.1A45BA54@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ffb0b555990d6321,start X-Google-Attributes: gid111d45,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: How to exit from Applet Date: 1998/10/27 Message-ID: <36362227.1A45BA54@netrisk.com> X-Deja-AN: 405661197 Content-Transfer-Encoding: 7bit Organization: NetRisk Inc. Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing