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