Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restarting an Applet

 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I have an applet (NOTE: I do not want to require a plugin), and I do all kinds of things but I always want to have a button, such that if the user pushes a button, the whole applet will be reloaded and initialized just as if it had been newly loaded. Is there a way to do this?
With Respect,
Matt
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,
Yes it can be done, probably not like you are thinking though. You can always reset all your internal variables to some value and make the applet look like it was reloaded. You can't however actually have the browser reload you from within your code. The browser is in control and you are its' guest. It tells you when to load or kill yourself not the other way around.
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic