I have a JComboBox<SelectionOption>
where the user can choose from a few options.
By default, none is selected comboBox.getModel.setSelectedItem(null)
, but I'd like to display a text that says something like "Please choose from the 5 Options" when the selection is null.
Can I achieve this somehow without adding a fake SelectionOption
?