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

解决方案 »

  1.   

    源程序的语法没有什么特别的,只是基类是Applet。
    楼上说的正确,自己搜一下
      

  2.   

    假如你写了一个Applet小程序名为MyApplet.java
    编译后为MyApplet.class
    你需写一个htm文件:
    <html>
      <applet code="MyApplet.class" width=500 hight=500>
     </applet>
    </html>
    然后用IE浏览该htm文件,就可以了
      

  3.   

    假如你写了一个Applet小程序名为MyApplet.java
    编译后为MyApplet.class
    你需写一个htm文件:
    <html>
      <applet code="MyApplet.class" width=500 hight=500>
     </applet>
    </html>
    然后用IE浏览该htm文件,就可以了
      

  4.   

    写个类继承Applet类,再实现applet中的函数就可以了,具体的可以参考java中自带的applet例子。