Results 1 to 3 of 3

Thread: closing a japplet

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    Baltimore
    Posts
    61

    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
    Striver2000

  2. #2
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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

  3. #3
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    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
  •  



Click Here to Expand Forum to Full Width