code: public void setCalendar(Calendar calendar) {
  		if (calendar == null) {
  			dateEditor.setDate(null);
  		} else {
  			dateEditor.setDate(calendar.getTime());
  		}
  	}
docs: Sets the calendar. Value null will set the null date on the date editor.
  
  @param calendar
  the calendar.