首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

java Applet,该如何处理

2012-04-06 
java Applet怎样编写java Applet程序,它的源程序的语法和相应的html文件是怎样写的?求指导![解决办法]goog

java Applet
怎样编写java Applet程序,它的源程序的语法和相应的html文件是怎样写的?求指导!

[解决办法]
google上百度一下,多的是。
[解决办法]
源程序的语法没有什么特别的,只是基类是Applet。
楼上说的正确,自己搜一下
[解决办法]
假如你写了一个Applet小程序名为MyApplet.java
编译后为MyApplet.class
你需写一个htm文件:
<html>
<applet code="MyApplet.class" width=500 hight=500>
 </applet>
</html>
然后用IE浏览该htm文件,就可以了
[解决办法]
假如你写了一个Applet小程序名为MyApplet.java
编译后为MyApplet.class
你需写一个htm文件:
<html>
<applet code="MyApplet.class" width=500 hight=500>
 </applet>
</html>
然后用IE浏览该htm文件,就可以了
[解决办法]
写个类继承Applet类,再实现applet中的函数就可以了,具体的可以参考java中自带的applet例子。

热点排行
Bad Request.