if (gui.isVisible() && height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height);
if (gui.isVisible()) { if (height > 0 && width > 0) { bi.drawImageBuffer(gg2d,x,y,width,height);   } else {     }
   protected synchronized void updateImage(int x, int y , int width, int height) {      if (gg2d == null) {         gg2d = (Graphics2D)gui.getGraphics();//         System.out.println("was null");      }      if (bi == null || gg2d == null)         return;      g2d.setClip(x,y,width,height);      if (!cursorActive && x + width <= bi.getWidth(null) &&          y + height <= (bi.getHeight(null) - fmWidth)) {         paintComponent2(g2d);      }      // fix for jdk1.4 - found this while testing under jdk1.4      //   if the height and or the width are equal to zero we skip the      //   the updating of the image.      if (gui.isVisible() && height > 0 && width > 0) {         bi.drawImageBuffer(gg2d,x,y,width,height);      }   }