void (ActionEvent e) { final boolean popupVisible = myCombobox.isPopupVisible(); if (!myInUpdate && (!popupVisible || myCoordinates.isEmpty())) { performSearch(); } else { final String item = (String)myCombobox.getSelectedItem(); if (StringUtil.isNotEmpty(item)) { ((JTextField)myCombobox.getEditor().getEditorComponent()).setText(item); } } }