Problem with displaying applet in webpage
Dear All
I have developed my first applet test as follows :
HelloWorldApplet.java :
import java.awt.Graphics;
publicclass HelloWorldAppletextends java.applet.Applet{
publicvoid paint(Graphics g){
g.drawString("Hello World!",5,25);
}
}
HelloWorldApplet.htm:
<HTML>
<HEAD>
<TITLE> Hello to Everyone !! </TITLE>
</HEAD>
<BODY>
<P> My Java Applet says :
<APPLET CODE="HelloWorldApplet.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>
After using javac HelloWorldApplet.java , the class is successfully created.
All 3 files (HelloWorldApplet.java , HelloWorldApplet.class and HelloWorldApplet.htm) are in the same folder.
If I open the webpage to see and test the applet , I just see the placeholder and a message is displayed in the status bar of Internet Explorer "class HelloWorldApplet not found".
If I use applet viewer , I am able to see the applet running.
I am using win xp professional.
Also I have tried many other small applets , and I face the same problem : I can see them in appletviewer but not the webpage.
Could you please tell me what could be wrong ? why I am able to see the applet in applet viewer but not the webpage ?
Thank you in advance
Evrim
Message was edited by:
Evrim

