e557. 在Applet中显示图片
See also e551 精简的Applet.
Image image;
public void init() {
// Load image
image = getImage(getDocumentBase(), "http://hostname/image.gif");
}
public void paint(Graphics g) {
// Draw image
g.drawImage(image, 0, 0, this);
}
| Related Examples |
浙公网安备 33010602011771号