return getLayout().preferredLayoutSize(this);
Dimension d; if (orientation == JSplitPane.HORIZONTAL_SPLIT) d = new Dimension(getDividerSize(), 1); else d = new Dimension(1, getDividerSize()); return d;
  public Dimension getPreferredSize()  {    return getLayout().preferredLayoutSize(this);  }