日期:2014-05-20  浏览次数:20692 次

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例子。