回复:(beyond_p)允许后应该可以的啊~我这里也是这样...
import java.applet.*;
import java.awt.*;
public class HelloApplet extends Applet{
public void paint(Graphics g){
g.setColor(Color.red);
g.drawString("Welcome to Java World!",40,50);
}
}
<HTML>
<HEAD>
<TITLE>小程序</TITLE>
</HEAD>
<BODY>
<APPLET code="HelloApplet.class"width=350 height=200></APPLET>
</BODY>
</HTML>
这样写的,没错啊!可以用appletviewer查看成功,IE却不行!