DefaultComboBoxModel<ElevationService> elevationServiceModel = new DefaultComboBoxModel<>();
for (ElevationService service : r.getElevationServiceFacade().getElevationServices())
elevationServiceModel.addElement(service);
elevationServiceModel.setSelectedItem(r.getElevationServiceFacade().getElevationService());
comboBoxElevationService.setModel(elevationServiceModel);
comboBoxElevationService.setRenderer(new ElevationServiceListCellRenderer());
comboBoxElevationService.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() != SELECTED)
return;
ElevationService service = ElevationService.class.cast(e.getItem());