public static void main(String[] args) {
Frame frame = new Frame();
Helloworldapp app =new Hellowordlapp();
app.init();
frame.add(app);
}
Frame frame = new Frame();
Helloworldapp app =new Hellowordlapp();
app.init();
frame.add(app);
}
编译好,建立html文件呀;
<html>
<applet="Helloworldapp.class" Width=300 Heigh=400>
</applet>
</html>
请问,APPLET程序只能在网页下运行吗,JDK中没有运行它的命令吗?
<body>
<applet
codebase = "."
code = "Helloworldapp.class"
name = "TestApplet"
width = "400"
height = "300"
>
</applet>
</body>
</html>
<html>
<body>
<applet
code = "Helloworldapp.class"
width = "400"
height = "300"
>
</applet>
</body>
</html>