i cant seem to load my applet..please can someone tell me what i am doing wrong..code compiles fine...
import java.awt.*;
import java.applet.*;
public class HelloWorldApplet extends
Applet {
private int paintCounter;
public void init()
{
paintCounter = 0;
}
public void paint(Graphics g)
{
g.setColor(Color.yellow);
g.fillRect(15, 5, 216,186);
g.setColor(Color.black);
g.drawString("Hello World",25,25);
paintCounter++;
g.drawString("Number of times paint() called: "+
paintCounter, 25,50);
}
}
html code...
<HTML>
<HEAD>
<TITLE>The first applet </TITLE>
</HEAD>
<BODY>
Heres comes my first applet:
<BR>
<APPLET CODE="HelloWorldApplet.class"WIDTH=200 HEIGHT=50>
</APPLET>
</BODY>
</HTML>
html file saved as test4.txt ...all files including xxx.class file in same dir. i load Ineternet Explorer..goto file..open..load test4.txt...all i get is html code above..help..