Applet

Hi ,I am trying to display a string on applet, on change the string value it is not reflected in applet after saving compiling & running the appletAny fixes or suggestions please this a urgent. I will place the code if neededNeti
[268 byte] By [gneti] at [2007-9-26 1:19:11]
# 1
Did you shut down the browser and restart it? I noticed that applets stay in memory and do not reload (even after clicking the Refresh/Reload button). I've had to close all my browser windows and restart them to have it update.
schillj at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 2
post the code.
darrelln at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 3
Thanks your suggestion worked I restarted my browser and changes in applet reflected as I wanted ...............Neti
gneti at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 4

It can be a real pain to get an applet to reload in a browser. You have to turn off the temporary storage and then relaunch the browser. I've found much to my annoyance that IE will still display the old applet even after deleting the temporary internet files and relaunching...meaning that it is storing stuff somewhere else...I've tried to find out where and haven't got it...if someone knows please post.

Netscape on the other hand doesn't seem so sneaky.

Purging temps and re-loading should do it there.

But for initial de-bugging you should be using appletviewer.

Good luck

brads at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 5
For internet explorer 5.0 (on windows 2000) the class files are cached in folders C:\Documents and Settings\<user_name>\Local Settings\Temporary Internet Files\Content.IE5 and/or C:\WINNT\Temporary Internet Files\Content.IE5You can look for them and delete them manually.
leukbr at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 6
Doesn't appletviewer reflect changes without all the hassle of restarting or deleting?
Stemco at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 7
That is why an applet viewer is suggested for debugging especiallly in the early stages....
udaysasi at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...
# 8

The appletviewer is not always usable - for example:

- when you communicate with javascript or html objects in your browser

- when your jdk is different then the jdk in the browser and you want to test the compatibility of the applet

- when you redirect the browser from within your applet

- when you want to run the applet within the browser's sandbox

The appletviewer doesn't bother about the surrounding html - it only reads between the applet's start-and end tags.

For most regular applets the appletviewer is indeed the best testing environment.

leukbr at 2007-6-29 0:51:15 > top of Java-index,Archived Forums,Java Programming...