e551. 精简的Applet
精简 Applet
2023-09-14 09:12:00 时间
Every applet must subclass Applet
.
import java.applet.*;
import java.awt.*;
public class BasicApplet extends Applet {
// This method is called once by the browser when it starts the applet.
public void init() {
}
// This method is called whenever the page containing this applet is made visible.
public void start() {
}
// This method is called whenever the page containing this applet is not visible.
public void stop() {
}
// This method is called once when the browser destroys this applet.
public void destroy() {
}
// This method is called whenever this applet needs to repaint itself.
public void paint(Graphics g) {
}
}
Here is an example of an HTML file that will cause the browser to load and start the applet:
<applet code=BasicApplet width=100 height=100> </applet>
Related Examples |
相关文章
- 超精简的订阅发布事件组件--SPEvent
- Mac下安装adb与精简索尼xz1c
- 数据库MSSQL实现数据库精简(mssql精简)
- 精简 Linux 内核,提高系统性能(linux内核精简)
- 嵌入式Linux系统实现精简裁剪(嵌入式linux系统裁剪)
- SQL Server数据库的精简化管理(精简sqlserver)
- Linux分区指南:精简的步骤和技巧(linux下如何分区)
- 精简高效,轻松运行:体验轻量化Linux系统(轻量化linux系统)
- 精简信息将数据用Byte存入MySQL中(byte存mysql)
- Applet和mysql构建强大的应用程序(applet mysql)
- 利用JScript中运算符"||"和"&&"的特殊特性实现代码精简
- mysql精简过程(删除一些文件)