Questions regarding EnumComboBox

  1. What is the suggested way to present the dropdown will “display names” for the Enums, rather than using the actual Enum’s name?
  2. Is there a “multi-select” component that allows users to select multiple elements within a dropdown?

This might not be the “suggested way”, but I use SimpleListCellRenderer:

comboBox(enumValues<SomeEnum>().toList(), SimpleListCellRenderer.create { label, item, _ ->
    label.text = "Some custom label"
})

The code is here if you want to have a deeper look (undocumented, sorry).

1 Like

Here is an example of Enum combobox with localized names.

ComboBox doesn’t support multiselection. You can use CheckBoxList/JBList for your purposes

1 Like

Seems like that code you pointed out is for this ComboBox, which doesn’t appear to allow multiple selections:

Yes, no multi-selection in ComboBox-es as I mentioned above