比如applet文件是AppletTest.class
1)
在AppletTest.java的代码中
使用默认包,即不用package语句
在html页中的代码是
<applet code="AppletTest.class" width="400" height="300">
</applet>
AppletTest.class文件和html页放在一个文件夹中
2)
在AppletTest.java的代码中
package xx.yy;
在html页中的代码是
<applet code="xx.yy.AppletTest.class" width="400" height="300">
</applet>
AppletTest.class文件放在xx/yy文件夹中
html页放xx文件夹的上层目录中
这两种情况都能正常显示