setTextField(fieldName, calendar.getActualMinimum(fieldName), true);
setTextField(fieldName, calendar.getActualMinimum(fieldName), true, true);
void onKeyDown(Event event) {	int fieldName;	switch (event.keyCode) {		case SWT.ARROW_RIGHT:		case SWT.KEYPAD_DIVIDE:			// a right arrow or a valid separator navigates to the field on the right, with wraping			selectField((currentField + 1) % fieldCount);			break;		case SWT.ARROW_LEFT:			// navigate to the field on the left, with wrapping			int index = currentField - 1;			selectField(index < 0 ? fieldCount - 1 : index);			break;		case SWT.ARROW_UP:		case SWT.KEYPAD_ADD:			// set the value of the current field to value + 1, with wrapping			incrementField(+1);			break;		case SWT.ARROW_DOWN:		case SWT.KEYPAD_SUBTRACT:			// set the value of the current field to value - 1, with wrapping			incrementField(-1);			break;		case SWT.HOME:			// set the value of the current field to its minimum			fieldName = fieldNames[currentField];			setTextField(fieldName, calendar.getActualMinimum(fieldName), true);			break;		case SWT.END:			// set the value of the current field to its maximum			fieldName = fieldNames[currentField];			setTextField(fieldName, calendar.getActualMaximum(fieldName), true);			break;		default:			switch (event.character) {				case '/':				case ':':				case '-':				case '.':					// a valid separator navigates to the field on the right, with wraping					selectField((currentField + 1) % fieldCount);					break;			}	}}