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