Rectangle r = component.getBounds(); if (r == null) return true; return dirty.contains(r);
return component.isCompletelyDirty;
  public boolean isCompletelyDirty(JComponent component)  {    Rectangle dirty = (Rectangle) dirtyComponents.get(component);    if (dirty == null)      return false;    Rectangle r = component.getBounds();    if (r == null)      return true;    return dirty.contains(r);  }