寸阳分阴须爱惜,休负春色与时光。这篇文章主要讲述e551. 精简的Applet相关的知识,希望能为你提供帮助。
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>
【e551. 精简的Applet】
Related Examples |
推荐阅读
- android view 转Bitmap 生成截图
- e555. 在Applet中播放音频
- vue 外卖app 引入阿里图标
- UVA12113-Overlapping Squares(二进制枚举)
- app测试之耗电量测试
- Hybrid app混合开发模式
- ClassPathXmlApplicationContext 源代码阅读之我见
- Android四大组件——服务以及实例
- App测试1-App测试概述