preferredScrollableViewportSize = p;
preferredViewportSize = p;
  public void setPreferredScrollableViewportSize(Dimension p)  {    preferredScrollableViewportSize = p;    revalidate();    repaint();  }