@Override
  public Dimension getMaximumSize() {
    if (myAnchor != null && myAnchor != this) return myAnchor.getMaximumSize();
    if (myEditorPane != null) {
      return getLayout().maximumLayoutSize(this);
    }
    return super.getMaximumSize();
  }
@Override
  public Dimension getMaximumSize()