Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet Reloading Problem

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This tiny ad will self destruct in five seconds.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic