protected void waitForImage(Image image){
  int id=++nextTrackerID;
  tracker.addImage(image,id);
  try {
    tracker.waitForID(id,0);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  tracker.removeImage(image,id);
}

protected void waitForImage ( Image image ) { int id = ++ nextTrackerID ; tracker . addImage ( image , id ) ; try { tracker . waitForID ( id , 0 ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; } tracker . removeImage ( image , id ) ; }
wait for an image to load .
