return isValid();
Container parent = getParent(); return parent != null && parent instanceof JViewport && parent.getWidth() > getUI().getMinimumSize(this).width;
  public boolean getScrollableTracksViewportWidth()  {    /*Container parent = getParent();    return (parent instanceof JViewport &&        parent.isValid());*/    return isValid();  }