It's not a secret anymore!
The moose likes Applets and the fly likes Applet not refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet not refreshing" Watch "Applet not refreshing" New topic

Applet not refreshing

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
What is the best way to quickly reflect the new compiled applet?
Everytime I changed my applet program its not reflected. I need to rename the applet to see it. I do delete files and clear history in browsers options but it still doesnt help. Thanks.
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
The best way is to quit and restart the browser. The problem is that once the browser's JVM loads your applet class, it won't be unloaded until the JVM quits.
During testing, you could also try using the appletviewer; it might make your code-compile-test cycle go a little faster.

SCJP 1.4
Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
Thanks Bob. I'll try the appletviewer instead. Even I quit browser and restart it, the same thing happened.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Applets forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Applet not refreshing
jQuery in Action, 3rd edition