@Deprecated
  @Override
  public final Dimension preferredSize() {
    LayoutManager layoutMgr = getLayout();
    return (layoutMgr != null) ?
           layoutMgr.preferredLayoutSize(this) :
           super.preferredSize();
  }
@Deprecated
  @Override
  public final Dimension preferredSize()