I have a Jbutton that I want to exit a japplet or close it but when I use System.exit(0); it wont do it what should i do? thanks
Printable View
I have a Jbutton that I want to exit a japplet or close it but when I use System.exit(0); it wont do it what should i do? thanks
I didn't think this was possible without the use of javascript, but I found this:
http://www.rgagnon.com/javadetails/java-0282.html
Applets have certain restrictions placed upon them such as not being able to access the host file system, making network connections to places other than the host that they came from, executing programs on the host ect ect.
I don't understand why you would want to call System.exit() anyway. When a user simply leaves the page where the applet is contained or the browser is shut down the stop() method should be invoked.