this.errorColor = ValidatorDialog.WARNING_COLOR;
this.defaultBGColor = textComponent.getBackground();
this.defaultToolTip = textComponent.getToolTipText();
this.textComponent = textComponent;
this.undoableListener = new JTextFieldUndoListener(this);
this.textComponent.getDocument().addUndoableEditListener(this.undoableListener);
if (checkOnFocusLost) {
textComponent.setInputVerifier(new InputVerifier() {