File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Refreshing an applet in a browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Refreshing an applet in a browser" Watch "Refreshing an applet in a browser" New topic

Refreshing an applet in a browser

Melanie Fitzgerald

Joined: May 30, 2001
Posts: 4
I have an applet that when the refresh button is pressed within a browser, the applet does not reload properly. Shift-refresh does not fix the problem either. So I have written a method reset() which "resets" the applet and I've put it in the start() method of the applet. However, this creates a new problem. When a Netscape browser is resized, it calls start() which will reset my this is no good. Is there a better way to go about this? Also, in IE on the Mac, when refresh is pressed, the html page reloads but the applet does not appear.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

I think you're on the right track... look for whatever logic is "not working correctly" and move it to the start() and stop() methods...

I really can't help you much more than this without code and a more in-depth explanation of what you are trying to do...


Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Refreshing an applet in a browser
It's not a secret anymore!