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