title: Java Editable JCombobox Keylistener event for Enter key
body: <p>I have editable JCombobox and I added keylistener for combobox editor component.
  When user press 'Enter key' and if there is no text on the editable combobox I need to display message box using JOptinoPane. I have done necessary code in keyrelease event and it displays message as expected. </p>
  
  <p>Problem is, when we get message box and if user press enter key on 'OK' button of JOptionPane, combobox editor keyevent fires again. Because of this, when user press Enter key on message box, JoptionPane displays continuously. </p>
  
  <p>Any idea how to solve this?</p>
  
  <p>Note that I can't use Action listener for this.</p>