&& parent.getHeight() > getUI().getMinimumSize(this).height;
&& parent.getHeight() >= getUI().getMinimumSize(this).height && parent.getHeight() <= getUI().getMaximumSize(this).height;
  public boolean getScrollableTracksViewportHeight()  {    // Tests show that this returns true when the parent is a JViewport    // and has a height > minimum UI height.    Container parent = getParent();    return parent instanceof JViewport           && parent.getHeight() > getUI().getMinimumSize(this).height;  }