java applet is not updating in the firefox browser
Hi.
Ive made a simple applet that display a helloworld, but when i change the code to new message, the browser does not change.
Is this a problem with firefox? buffering the class file or something?
Very anoying not to be able to see the changes i've made right away.
Hope there is an easy fix to this.
please help me
thnaks
boidi
Re: java applet is not updating in the firefox browser
Try removing cached internet files via the Java control panel.
db
Re: java applet is not updating in the firefox browser
Quote:
Originally Posted by
DarrylBurke
Try removing cached internet files via the Java control panel.
db
thaks for replay sir...
cache also removed bt still the same issue......
Re: java applet is not updating in the firefox browser
Re: java applet is not updating in the firefox browser
Hello sir,
I have created small applet using Java. I embedded this applet in the browser using html tags. First time it is coming with whatever msgs there in the java class. after that i have changed the msgs and made a new applet. once again I embedded this applet, but updated msgs are not displaying. applet is showing previous msgs.
code:
public class New extends JApplet {
/**
* Initialization method that will be called after the applet is loaded
* into the browser.
*/
@Override
public void init() {
// TODO start asynchronous download of heavy resources
}
@Override
public void paint( Graphics g ) {
g.setColor( Color.gray );
g.drawString("helloworld....", 100, 100);
}
// TODO overwrite start(), stop() and destroy() methods
}
this applet i have embedded using html tags
<Applet archive="JavaApplet.jar" Code="javaapplet/New.class" width=700 Height=400>
</Applet>
if i will change the msg in the g.drawString, it is not updating for the second time.... what to do...
thanks
boidi
Re: java applet is not updating in the firefox browser
The Applet tags's code= attribute should contain the name of the class: New, not a path to the class file.
What error messages are in the browser's java console?
Re: java applet is not updating in the firefox browser
no errors msgs are coming in the browser's java console...for the first time embedded applet "hello world......" is coming. After that I changed "hello wrold......" msg to "bye world....". then I embedded recent applet...bt still the "hello world...." msg is coming.
Re: java applet is not updating in the firefox browser
You must be executing the old code. Make sure the old code is removed/hidden/deleted.
Re: java applet is not updating in the firefox browser
how to access functions in applet from html?
Re: java applet is not updating in the firefox browser
The browser will call some of the applet's methods depending of the state of execution of the applet.
What methods do you want to call in the applet? There are ways for javascript code to call methods in an applet.
Re: java applet is not updating in the firefox browser