public void invalidate() {
    assert myValid;
    assert myNext == null;
    if (myPrev != null) {
      ((AbstractFrame<?>)myPrev).myNext = null;
    }
    myValid = false;
  }
public void invalidate()