title: How i handle keypress event for Jcombobox in java
body: <p>I want to add item to JCombobox , that item is what I typed in JCombobox which is item to be add. this jCombox box is editable.</p>
  
  <p>How can i do this.</p>
  
  <p>Ok i tryied add KeyPress event for this JCombo box but it doesn't respose</p>
  
  <pre><code> private void jbcBOXKeyTyped(java.awt.event.KeyEvent evt) {
  
          if (evt.getKeyCode() == 13) {
              System.out.println("Keypress");
              jbcBOX.addItem(jbcBOX.getSelectedItem().toString());
          }
      }
  </code></pre>