关于APPLET的一点小问题
我现在编译了一个APPLET程序,并把它编译成了class文件,现在想嵌入html中,在IE上运行一下,但不出结果,是什么原因呢
import java.awt.*;
import java.applet.*;
public class firstapplet extends Applet
{
String mystring=new String("hello world!");
public void paint(Graphics g)
{
g.drawString(mystring,30,40);
}
<html>
<head>
<title>
firstapplet
</title>
</head>
<body>
<hr>
<applet
code=firstapplet.class
width=30
height=240>
</applet>
<hr>
</body>
</html>
这是以上代码!