java applet 初学问题,提示:启动:未初始化小程序 40
importjava.applet.*;publicclassTestAppletextendsApplet{publicvoidinit(){System.out.pr...
import java.applet.*;
public class TestApplet extends Applet{
public void init(){
System.out.println("hello,applet1 ");
}
public void start(){
System.out.println("hello,applet2 ");
}
public void stop(){
System.out.println("hello,applet3 ");
}
public void destory(){
System.out.println("hello,applet4 ");
}
}
//<applet code=TestApplet.class width=200 height=200>
//</applet>
//<applet code="TestApplet.class" width="200" height="200"> TestApplet.class加引号也不行
//</applet> 展开
public class TestApplet extends Applet{
public void init(){
System.out.println("hello,applet1 ");
}
public void start(){
System.out.println("hello,applet2 ");
}
public void stop(){
System.out.println("hello,applet3 ");
}
public void destory(){
System.out.println("hello,applet4 ");
}
}
//<applet code=TestApplet.class width=200 height=200>
//</applet>
//<applet code="TestApplet.class" width="200" height="200"> TestApplet.class加引号也不行
//</applet> 展开
展开全部
改成下边这个样子吧:
<applet code=TestApplet.class width="200" height="200" >
</applet>
<applet code=TestApplet.class width="200" height="200" >
</applet>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询