<applet code="PrintTestApplet.class"
width=600
height=600>
</applet>
这样应该就行了
记得把你的两个class文件放在和你的HTML同一个目录下

解决方案 »

  1.   

    <applet code="PrintTestApplet.class"
    width=600
    height=600>
    </applet>

    你的="PrintTestApplet.class会自己去调用另外那个class的
      

  2.   

    使用那个public声明的类 就是 public class PrintTestApplet 
    另外一个是内部类,不过使用的时候两个class要在一起
      

  3.   

    <applet code="PrintTestApplet.class"
    width=600
    height=600>
    </applet>
    class文件放在和你的HTML同一个目录下,或者下层的目录下好像也可以得,忘记了!
    另外一个class就像楼上说的那样,要是一个内部的类,可以得,不是的话,就不知道了!
    把另外一个class作为内部的类,然后把所有的导出来的class放在你的html目录下就可以了~不是很懂,我也外行,自己焱就试试看吧,好运!