@ Override public Object getValue ( ) { Date d = Calendar . getInstance ( ) . getTime ( ) ; try { d = DEFAULT_DATE_FORMAT . parse ( ( ( JTextField ) editor ) . getText ( ) ) ; } catch ( ParseException ex ) { Logger . getLogger ( CalendarStringPropertyEditor . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } Calendar c = Calendar . getInstance ( ) ; c . setTime ( d ) ; return c ; }
Returns the Date of the Calendar .