Hi Bytes,
i did sample Applet program in linux environment in that place where my java is installed. when i execute the code it creates the .class file and browser shows the result when i load the page. then i have opened the same program again did some modification,ma de a compilation and run the program but changes didnt affect in the browser. is it the problem in .class regenration? or what could be the problem?. suggest me.
code i used..
<code>
samp.java
import java.applet.*;
import java.awt.*;
public class samp extends Applet{
public void paint(Graphics g){
g.drawString("W elcome in Java Applet.",400,20 );
g.drawString(" By PrastSystems",8 0,70);
g.drawString(" By Java",50,230);
}
}
samp.html
<HTML>
<HEAD><title>Ap plet In Jsp</title>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="samp.clas s" WIDTH="800" HEIGHT="500">
</APPLET>
</BODY>
</HTML>
</code>
i did sample Applet program in linux environment in that place where my java is installed. when i execute the code it creates the .class file and browser shows the result when i load the page. then i have opened the same program again did some modification,ma de a compilation and run the program but changes didnt affect in the browser. is it the problem in .class regenration? or what could be the problem?. suggest me.
code i used..
<code>
samp.java
import java.applet.*;
import java.awt.*;
public class samp extends Applet{
public void paint(Graphics g){
g.drawString("W elcome in Java Applet.",400,20 );
g.drawString(" By PrastSystems",8 0,70);
g.drawString(" By Java",50,230);
}
}
samp.html
<HTML>
<HEAD><title>Ap plet In Jsp</title>
</HEAD>
<BODY>
<APPLET ALIGN="CENTER" CODE="samp.clas s" WIDTH="800" HEIGHT="500">
</APPLET>
</BODY>
</HTML>
</code>
Comment