addDirtyRegion(component, r.x, r.y, r.width, r.height); component.isCompletelyDirty = true;
addDirtyRegion(component, 0, 0, r.width, r.height);
  public void markCompletelyDirty(JComponent component)  {    Rectangle r = component.getBounds();    addDirtyRegion(component, r.x, r.y, r.width, r.height);    component.isCompletelyDirty = true;  }