@Override
      public void actionPerformed(ActionEvent e) {
        if (popup.isPopupFocused()) {
          popupSelection(popup.getSelection());
        }
        else {
          // use update instead of checkChanges, in case it
          // is needed to reset the icon of a CustomChoice
          filter.consolidateFilter();
        }

        popup.hide();
      }
@Override
      public void actionPerformed(ActionEvent e)