对的,你运行方式不对。
你看JApplet,,IE浏览器默认是不支持的。你运行使用appletviewer applet.html
applet.html
<html><body>
<applet code="title1.class" codebase="" width="400" height="300">
</applet>
</body></html>
你看JApplet,,IE浏览器默认是不支持的。你运行使用appletviewer applet.html
applet.html
<html><body>
<applet code="title1.class" codebase="" width="400" height="300">
</applet>
</body></html>
解决方案 »
- Class.getResource()与Class.getClassLoader().getResource()有什么区别?
- 关于java与as进行flex开发的问题
- 求教IO流的学习侧重点
- 简单问题关于JDBC
- 读客户端串口问题?急.....
- 关于扩展包的路径问题.(赶集啊)
- 帮帮小弟!
- 有关hashmap的问题:我怎么从哈希表中把其键(key)和值(VAlue)以字符串数组的形式取出?
- linux 下的java class path 问题
- 我想做一个菱形的JComponent,请问可以实现吗?
- basicUnit起什么作用?API里没有找到
- 下载哪个sdk?分别说说这二个文件有什么区别好吗?
使用appletviewer吧。
<Applet Code="title.class" width="200" height="2000">
</Applet>
即可