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