code: protected void setDate(Date date, boolean firePropertyChange) {
  		Date oldDate = this.date;
  		this.date = date;
  
  		if (date == null) {
  			setText("");
  		} else {
  			String formattedDate = dateFormatter.format(date);
  			try {
  				setText(formattedDate);
  			} catch (RuntimeException e) {
  				e.printStackTrace();
  			}
  		}
  		if (date != null && dateUtil.checkDate(date)) {
  			setForeground(Color.BLACK);
  
  		}
  
  		if (firePropertyChange) {
  			firePropertyChange("date", oldDate, date);
  		}
  	}
docs: Sets the date.
  
  @param date
  the date
  @param firePropertyChange
  true, if the date property should be fired.