I am trying to get response from ComboBox editor. So I added a `document listener` to the combobox. The problem is the document listener doesn't seem to be working at all. I think the listener is not connected to the `combobox editor`. I know I am missing something. Here is the code:

```
    // constructor of GUI class
    ComboBoxDocumentHandler handle = new ComboBoxDocumentHandler();

    JTextComponent comboEditorComponent =(JTextComponent) InstantSearchBox.getEditor().getEditorComponent();

    doc = comboEditorComponent.getDocument();

    doc.addDocumentListener(handle);

   // Document Handler class and its method
private class ComboBoxDocumentHandler implements DocumentListener
{

    @Override
    public void changedUpdate(DocumentEvent event) {
    System.out.println("Inside"); // this statement is not printing when I add something to the combobox editor
    }
}

```

Regards