public synchronized boolean imageUpdate(Image img,int infoFlags,int x,int y,int width,int height){
  boolean gotInfo=false;
  if ((infoFlags & (WIDTH | HEIGHT)) != 0) {
    gotInfo=true;
    notify();
  }
  return gotInfo;
}

public synchronized boolean imageUpdate ( Image img , int infoFlags , int x , int y , int width , int height ) { boolean gotInfo = false ; if ( ( infoFlags & ( WIDTH | HEIGHT ) ) != 0 ) { gotInfo = true ; notify ( ) ; } return gotInfo ; }
notify this object when the height or width become available for an image .
