Example implementation for using an enum with JComboBox.