ComboBoxEditor cbe = comboBox.getEditor(); if (cbe != null) { cbe.getEditorComponent().setFont(comboBox.getFont()); cbe.setItem(comboBox.getSelectedItem()); cbe.addActionListener(comboBox); }
super.configureEditor(); if (popupKeyListener != null) editor.removeKeyListener(popupKeyListener); if (focusListener != null) editor.addFocusListener(focusListener);
  public void configureEditor()  {    ComboBoxEditor cbe = comboBox.getEditor();    if (cbe != null)      {        cbe.getEditorComponent().setFont(comboBox.getFont());        cbe.setItem(comboBox.getSelectedItem());        cbe.addActionListener(comboBox);      }  }