Killing an applet

N

nickmphillips

Is there any way to programmatically kill an applet? I've tried adding
an exit button, which invokes a web page with javascript that closes
the invoking window, but to no avail - the applet window keeps on
coming back! Surely, there must be an easy way not involving java
script.

Many thanks in advance.
 
R

Rhino

Is there any way to programmatically kill an applet? I've tried adding
an exit button, which invokes a web page with javascript that closes
the invoking window, but to no avail - the applet window keeps on
coming back! Surely, there must be an easy way not involving java
script.

Many thanks in advance.
Have you tried making the exit button do a System.exit(0)?

Rhino
 
W

Wayne

Rhino said:
Have you tried making the exit button do a System.exit(0)?

Rhino

Applets can't invoke System.exit. Without interfacing with JavaScript
you can't programmatically close the browser window containing some
applet. However Java methods can invoke JavaScript and vice-versa,
if you set up the HTML web page correctly.

-Wayne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top