code: public void removeChatGrabber (JTextComponent comp)
      {
          // remove the component from the list of grabbers
          comp.removeAncestorListener(this);
          _chatGrabbers.remove(comp);
  
          // update the current chat grabbing component
          _curChatGrabber = _chatGrabbers.isEmpty() ? null :
              _chatGrabbers.getLast();
      }
docs: Removes the specified component from the list of chat grabbers so
  that it will no longer be notified of chat-like key events.