public SpeedSearchBase(Comp component) {
    myComponent = component;

    myComponent.addFocusListener(
        new FocusAdapter() {
          public void focusLost(FocusEvent e) {
            manageSearchPopup(null);
          }
        });
    myComponent.addKeyListener(
        new KeyAdapter() {
          public void keyTyped(KeyEvent e) {
            processKeyEvent(e);
          }

          public void keyPressed(KeyEvent e) {
            processKeyEvent(e);
          }
        });

    installSupplyTo(component);
  }
  public SpeedSearchBase(Comp component) {
    myComponent = component;

    myComponent.addFocusListener(
        new FocusAdapter() {
          public void focusLost(FocusEvent e) {
            manageSearchPopup(null);
          }
        });
    myComponent.addKeyListener(
        new KeyAdapter() {
          public void keyTyped(KeyEvent e) {
            processKeyEvent(e);
          }

          public void keyPressed(KeyEvent e) {
            processKeyEvent(e);
          }
        });

    component.putClientProperty(SPEED_SEARCH_COMPONENT_MARKER, this);
  }