Have a look at the ImageObserver in the API documentation, implement the interface and repaint() the applet as soon as the image is fully loaded.
You can also just cut'n'paste the following code and then implement ImageObserver and pass "this" as the ImageObserver parameter when you construct the image:
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
{
if ((infoflags | ImageObserver.ALLBITS) == ImageObserver.ALLBITS)
{
myFrame.setVisible(false);
}
return super.imageUpdate(img, infoflags, x, y, width, height);
}
Hope this helps
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch