void applyEditorValueAndDeactivate(){
  Object newValue=doGetValue();
  markDirty();
  boolean isValid=isCorrect(newValue);
  setValueValid(isValid);
  if (!isValid) {
    setErrorMessage(MessageFormat.format(getErrorMessage(),comboBox.getText()));
  }
  fireApplyEditorValue();
  deactivate();
}

void applyEditorValueAndDeactivate ( ) { Object newValue = doGetValue ( ) ; markDirty ( ) ; boolean isValid = isCorrect ( newValue ) ; setValueValid ( isValid ) ; if ( ! isValid ) { setErrorMessage ( MessageFormat . format ( getErrorMessage ( ) , comboBox . getText ( ) ) ) ; } fireApplyEditorValue ( ) ; deactivate ( ) ; }
applies the currently selected value and deactivates the cell editor
