Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Kill an applet from within

Status
Not open for further replies.

PC888

Programmer
Nov 7, 2003
117
0
0
CA
I have an applet using ActionListener.

To exit from the applet, I tried System.exit(0), but it does not do anything.

Could someone please enlighten me if there are other methods I should be using, or how I can stop the running threads so that System.exit() can do its work?
 
Actually, stop executing the applet, and if it is executed from a web-browser, return to the previous page. Loosely speaking, the equivalent of System.exit() in a normal Java program.
If the behaviour is different between a local execution and a web applet, I would like to know what to do in both cases.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top