revalidate();
  public void setHorizontalScrollBarPolicy(int h)  {    if (horizontalScrollBarPolicy == h)      return;        if (h != HORIZONTAL_SCROLLBAR_AS_NEEDED        && h != HORIZONTAL_SCROLLBAR_NEVER        && h != HORIZONTAL_SCROLLBAR_ALWAYS)      throw new IllegalArgumentException("unknown horizontal scrollbar policy");        int old = horizontalScrollBarPolicy;    horizontalScrollBarPolicy = h;    firePropertyChange("horizontalScrollBarPolicy", old, h);    sync();  }