viewExtent = newSize;
viewSize = newSize; Component view = getView(); if (view != null) view.setSize(newSize);
  public void setViewSize(Dimension newSize)  {    viewExtent = newSize;    fireStateChanged();  }