return ((JViewport) getParent()).getWidth() > getPreferredSize().width;
return ((JViewport) getParent()).getHeight() > getPreferredSize().height;
  public boolean getScrollableTracksViewportHeight()  {    if (getParent() instanceof JViewport)      return ((JViewport) getParent()).getWidth() > getPreferredSize().width;    return false;  }