}
  public Dimension preferredLayoutSize(Container parent)   {    JViewport vp = (JViewport)parent;    Component view = vp.getView();    if (view != null)      return view.getPreferredSize();    else      return new Dimension();	}