}
  public void setValue(Object value)  {    if (! (value instanceof Date) || value == null)      throw new IllegalArgumentException("Value not a date.");    date.setTime((Date) value);    fireStateChanged();  }