• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet close

 
vikram
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote System.exit(0) to close the applet from applet viewer.It is giving AccessControlException.
Please help me in this.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It is not nice to try and kill the JVM with System.exit() method when dealing with applets. Since the browser is in control of when your applet starts/stops and is in total control of the JVM. Your applet can only go along for the ride and hope for the best. It can have no control over the flow ...
Regards,
Manfred.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vikram,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic