I used appletviewer to verify my code. It is right.
When I use IE to display html including applet, why the IE just display the content from the html not from applet ? here is the code:
Java:
import java.awt.Graphics;
public class HelloWorldApplet extends java.applet.Applet{
public void paint (Graphics g)
{
g.drawString("HelloWorld", 5, 25);
}
}
Html:
<html>
<head>
<title>Hello to Everyone</title>
</head>
<body >
<P>Why?
<APPLET CODE= "java.awt.Graphics.HelloWorldApplet" WIDTH=150 HEIGHT=25></APPLET>
</body>
</html>
In addition: I put the HelloWorldApplet.java and HelloWorldApplet.class and HelloWorldApplet.html fils in the same directory