当前位置: 代码迷 >> J2SE >> java Applet,该如何处理
  详细解决方案

java Applet,该如何处理

热度:70   发布时间:2016-04-24 01:26:56.0
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例子。
  相关解决方案