ComboBoxModel<NumberPattern> numberPatternModel = new DefaultComboBoxModel<>(new NumberPattern[]{
Description_Only, Number_Only, Number_Directly_Followed_By_Description, Number_Space_Then_Description
});
numberPatternModel.setSelectedItem(r.getNumberPatternPreference());
comboboxNumberPattern.setModel(numberPatternModel);
comboboxNumberPattern.setRenderer(new NumberPatternListCellRenderer());
comboboxNumberPattern.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() != SELECTED)
return;
NumberPattern numberPattern = NumberPattern.class.cast(e.getItem());