return isValid();
Container parent = getParent(); return parent instanceof JViewport && parent.getHeight() > getUI().getMinimumSize(this).height;
  public boolean getScrollableTracksViewportHeight()  {  /*  Container parent = getParent();    return (parent instanceof JViewport &&        parent.isValid());*/    return isValid();  }