textComponent.removeFocusListener(focuslistener); textComponent.getDocument().removeDocumentListener(documentHandler);
if (focusListener != null) textComponent.removeFocusListener(focusListener);
  protected void uninstallListeners()  {    textComponent.removeFocusListener(focuslistener);    textComponent.getDocument().removeDocumentListener(documentHandler);  }