对不起,没看完!你这是你个applet小程序,应该编一个html文件内容如下(applet.html):
<html>
<title>
this is a applet
</title>
<body>
<applet code=ls.class width=200 height=200></applet>
</body>
</html>
运行appletviewer applet.html即可