wood burning stoves 2.0*
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
Author

Refreshing an applet in a browser

Melanie Fitzgerald
Greenhorn

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 applet...so 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.
Thanks!
Nathan Pruett
Bartender

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...

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing an applet in a browser
 
Similar Threads
HTML Frames / Applet / Servlet and Session Tracking - Help with Strategy Please
Refresh problem in JApplet??
Applet revesit problem - Help pls
Revisiting an Applet - Urgent
Refresh Applet