UserInput () { ChooseDialog dialog = new ChooseDialog(getProject(), getMessage(), getTitle(), getIcon(), myChoises, myDefaultChoice, getOptions(), getDefaultOption()); dialog.setValidator(null); JComboBox comboBox = dialog.getComboBox(); comboBox.setEditable(false); comboBox.setSelectedItem(myDefaultChoice); dialog.show(); Object selectedItem = comboBox.getSelectedItem(); return new UserInput(selectedItem != null ? selectedItem.toString() : null, dialog.getExitCode()); }