return new Dimension(width, height); }  return new Dimension(0,0);
Insets i = sc.getInsets(); return new Dimension(width + i.left + i.right, height + i.top + i.bottom);
  public Dimension minimumLayoutSize(Container parent)  {    if (parent != null && parent instanceof JScrollPane)      {        JScrollPane sc = (JScrollPane) parent;        Dimension viewportSize = viewport.getMinimumSize();        int width = viewportSize.width;        int height = viewportSize.height;        if (hsb != null && hsb.isVisible())          height += hsb.getMinimumSize().height;        if (vsb != null && vsb.isVisible())          width += vsb.getMinimumSize().width;        if (rowHead != null && rowHead.isVisible())          width += rowHead.getMinimumSize().width;        if (colHead != null && colHead.isVisible())          height += colHead.getMinimumSize().height;        return new Dimension(width, height);          }    // TODO: Probably throw an exception here. Check this.        return new Dimension(0,0);      }