问题出在
package FirstApplet;<html>
<head><title>applet</title></head>
<body>
<applet code="Applet1.class" width="200" height="200" ></applet>
</body>
</html>import java.awt.*;
import java.applet.*;public class Applet1 extends Applet
{
public void paint(Graphics g)
{
g.drawString("First applet",10,10);
g.draw3DRect(0, 0, 100, 20, true);
}
}
package FirstApplet;<html>
<head><title>applet</title></head>
<body>
<applet code="Applet1.class" width="200" height="200" ></applet>
</body>
</html>import java.awt.*;
import java.applet.*;public class Applet1 extends Applet
{
public void paint(Graphics g)
{
g.drawString("First applet",10,10);
g.draw3DRect(0, 0, 100, 20, true);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货