一、Applet程序
1、Applet类
Applet类提供了Applet程序与所执行环境间的标准接口,同时还提供了Applet程序在浏览器上执行的架构,包括init(),start(),stop(),destroy()四个方法。
2、Applet程序的运行过程
init()-->start()-->paint()-->stop()-->start()-->paint()-->stop()-->destroy()
3、Applet程序的建立和运行
内嵌有小程序的html文件的基本组成:
<html>
<applet code=”applet程序名.class” width=窗口宽度 height=窗口高度>
</applet>
</html>