repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight());
Rectangle dirty = new Rectangle(x, y, width, height); Rectangle vis = getVisibleRect(); dirty = dirty.intersection(vis); RepaintManager.currentManager(this).addDirtyRegion(this, dirty.x, dirty.y, dirty.width, dirty.height);
  public void repaint(Rectangle r)	{    repaint((long) 0, (int) r.getX(), (int) r.getY(), (int) r.getWidth(),            (int) r.getHeight());	}