maximumSize = max;
maximumSize = new Dimension(max);
  public void setMaximumSize(Dimension max)  {    Dimension oldMaximumSize = maximumSize;    maximumSize = max;    firePropertyChange("maximumSize", oldMaximumSize, maximumSize);  }