private void updateUserValue(boolean highlightError) {
    if (editorComponent != null) {
      JTextField valueTextField = editorComponent.getTextField();
      if (valueTextField.isEditable()) {
        try {
          Object value = getEditorValue();
          editorComponent.getUserValueHolder().updateUserValue(value, false);
          valueTextField.setForeground(UIUtil.getTextFieldForeground());
        } catch (ParseException e1) {
          if (highlightError) {
            valueTextField.setForeground(Color.RED);
          }

          // DBDataType dataType = cell.getColumnInfo().getDataType();
          // MessageUtil.showErrorDialog("Can not convert " + valueTextField.getText() + " to " +
          // dataType.getName());
        }
      }
    }
  }
 @Override
 protected void textChanged(DocumentEvent documentEvent) {
   JTextField valueTextField = editorComponent.getTextField();
   valueTextField.setForeground(UIUtil.getTextFieldForeground());
 }