-
Updating an applet
Hello,
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?
-
Are you uploading the new .jar or .class file?
-
I edit the program in JCreator, then re-compile the program. Isn't the .class file updated that way?
-
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()).
-
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?
-
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...
-
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.
-
Thanks guys, I have created a new file and now the applet updates accordingly.
Similar Threads
-
By Tataroz T. in forum Java
Replies: 1
Last Post: 10-20-2005, 06:19 AM
-
Replies: 1
Last Post: 10-07-2005, 08:51 AM
-
By Charlie Flynn in forum Java
Replies: 3
Last Post: 08-23-2001, 11:01 AM
-
Replies: 0
Last Post: 02-27-2001, 10:42 PM
-
Replies: 0
Last Post: 03-28-2000, 01:52 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks