|
-
Jul 28th, 2005, 09:13 PM
#1
Thread Starter
Member
closing a japplet
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
-
Jul 28th, 2005, 09:40 PM
#2
Frenzied Member
Re: closing a japplet
I didn't think this was possible without the use of javascript, but I found this:
http://www.rgagnon.com/javadetails/java-0282.html
-
Jul 28th, 2005, 10:30 PM
#3
Dazed Member
Re: closing a japplet
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|