替硝唑牙痛怎么吃:如何用命令方式运行java Applet

来源:百度文库 编辑:高校问答 时间:2024/04/28 16:09:51

比如你文件叫hello.java
编译为hello.class
写一个html叫hello.html
内容为
<html>
<applet>code="hello.class"
width=200
height=100
</applet>
</html>

然后在命令行方式进入上述文件所在文件夹
打命令appletviewer hello.html