showImagepublic class showImage extends Applet
Fields Summary |
---|
Image | thePicture |
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) {
repaint();
return false;
}
else {
return true;
}
| public void | init()
thePicture = getImage(getDocumentBase(), "logo.gif");
| public void | paint(java.awt.Graphics g)
if(!g.drawImage(thePicture, 0, 0, this)) {
g.drawString("Loading Picture. Please hang on", 25, 50);
}
|
|