1、相同目录下
<applet code="*.class" width=250 height=50> </applet>
指定applet类名称,applet的宽度和高度。
2、不同路目下
<applet codebase="C:/Users/Administrator/Desktop/code"
code="*.class" width=250 height=50> </applet>
添加指定applet所在目录。
在浏览器中查看,或使用applet查看器工具查看(appletviewer *.class);
原文:http://www.cnblogs.com/diyishijian/p/5035002.html