DelayedImageViewpublic class DelayedImageView extends Applet
Fields Summary |
---|
private Image | picture |
Methods Summary |
---|
public boolean | imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
if ((infoflags & ImageObserver.ALLBITS) == ImageObserver.ALLBITS) {
this.repaint();
return false;
}
else {
return true;
}
| public void | init()
this.picture = this.getImage(this.getDocumentBase(), "cup.gif");
| public void | paint(java.awt.Graphics g)
if(!g.drawImage(this.picture, 0, 0, this)) {
g.drawString("Loading Picture. Please hang on", 25, 50);
}
|
|