appletviewer 这个命令怎么用的????

ddboy 2003-04-12 03:07:57
appletviewer xxx.class 我什么都看不到
...全文
92 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
htl 2003-04-20
  • 打赏
  • 举报
回复
你应该这样
<applet code=xxx.class width=400 height=300>
</applet>
然后保存为yyy.html
再执行appletviewer yyy.html
DavidBone 2003-04-18
  • 打赏
  • 举报
回复
up
DavidBone 2003-04-18
  • 打赏
  • 举报
回复
up
Tianminghui 2003-04-12
  • 打赏
  • 举报
回复
appletviewer *.html 就是楼上的方法了

更方便的方法是把<appplet>标记以注释的方式放到java文件中
//<applet code=xxx.class
// width=300 height=200>
//</applet>

appletviewer *.java(不是class)
cmslovehxh 2003-04-12
  • 打赏
  • 举报
回复
appletviewer的功能相当浏览器;xxx.class 必须是Applet小程序
appletviewer xxx.html;
xxx.html:
<html>
<head><title></title></head>
<body>
<hr><hr>
<applet code=xxx.class
width=300 height=200>
</applet>
</body>
</html>
rainver 2003-04-12
  • 打赏
  • 举报
回复
将你的class用<applet></applet>标签加入网页中
切换到网页文件所在目录
执行 appletviewer 文件名.html
就可以执行了:)

62,627

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧