Rectangle dirty = (Rectangle) dirtyComponents.get(component); if (dirty == null)
if (! dirtyComponents.containsKey(component))
  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);  }