• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Reloading Problem

 
Raghvendra Sharma
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing a Swing applet, which actually runs quite a heavy application. It uses at least two jar files too.
the functionality requires that i open the page containing in a new browser window. I do that using window.open() successfully.
Once the applet is loaded and working, i close the child window. (the client might always do that...) And then i click again on the link for opening the applet in a new browser window (the original place for firing the applet), what i expect is that the applet should reload itself.
But that's not what is happening. It doesn't do anything written inside any of the methods, i.e. all of the init, start etc. are skipped.
And effectively, i have to have a fresh instance of browser (parent) to be able to launch the applet again.
Could anybody throw some light on this thing. What i want is that the applet should be loaded again whenever i click on that link for loading it.
any sort of help would do.
thanks and regards

raghav..
[This message has been edited by Raghvendra Sharma (edited August 11, 2001).]
 
Raghvendra Sharma
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Ujjaval,
The problem in my case was due to the applet not being properly destroyed during the applet life cycle method "destroy". When i took enough care to properly nullify my objects in the destroy method, it worked.
Additionally, try using the applet caching mechanism to ask applet to get data afresh in the second loading. There are certain parameters for the applet tag, at java.sun.com, They actully control the way caching is handled.
regards
raghav..
Raghvendra Sharma
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic