I'm having this problem: when I run an applet, and subsequently change something from the code (ex. changing the size of a TextArea), then I recompile, and load the .html file, but the TextArea doesn't update to its new size. This happens also for other small things like changing a String etc....
Anyone knows what could be the problem?
03-12-2006, 11:14 AM
destin
Are you uploading the new .jar or .class file?
03-12-2006, 11:23 AM
Dreamer
I edit the program in JCreator, then re-compile the program. Isn't the .class file updated that way?
03-12-2006, 12:23 PM
Dreamer
I'm noticing that after some time, the applet updates accordingly, however when I re-open it, it goes back to the previous version, and so on..... strange problem. I don't know if the fact that I only have the init() method has to do with this. (I don't have the other methods start(), paint(), stop(), destroy(), update()).
03-12-2006, 12:31 PM
destin
Wait... is this applet on a website and you are trying to re-upload it? Or is the actual program just not updating when running it through appletviewer?
03-12-2006, 12:35 PM
Dreamer
No it's not an a website, I'm running it through the usual html code: <HTML><BODY>
<APPLET CODE=abc.class WIDTH=300 HEIGHT=200></APPLET>
</BODY></HTML>
When I re-run the html file and open the applet with Internet Explorer with the amended version, the applet doesn't update...
03-13-2006, 11:25 AM
ractoc
Try <crtl>+<F5> in your browser.
This behavious is probalby due to the fact that the applet is stored in the cache of your browser and the above key-comba tells your browser to refresh the page and ignore the fact that any part of the page might be in cache already.
03-15-2006, 03:59 PM
Dreamer
Thanks guys, I have created a new file and now the applet updates accordingly.