private static final long serialVersionUID = 2888692381405782728L;
public JXDatePickerDefaultCellEditor() {
super(new JCheckBox());
editorComponent = new JXDatePicker();
final JXDatePicker datePicker = (JXDatePicker) editorComponent;
datePicker.setFormats(new String[] {"EEE dd/MM/yyyy"});
delegate = new EditorDelegate() {
private static final long serialVersionUID = 1540110912280113130L;
public Object getCellEditorValue() {
return DateFormat.getDateInstance(DateFormat.DATE_FIELD).format(datePicker.getDate());
}
};
datePicker.addActionListener(delegate);
datePicker.setRequestFocusEnabled(false);
}