if (parent != null && parent.valid)
if (parent != null && parent.isValid())
  public void invalidate()  {		valid = false;		prefSize = null;		minSize = null;		if (parent != null && parent.valid)			parent.invalidate();	}