private void fillActionComboBox() { actionComboBox.removeAllItems(); Object o = modelComboBox.getSelectedItem(); if (o instanceof BasicModel) { BasicModel model = (BasicModel) o; Map switchMap = model.getSwitches(); if (switchMap != null) { synchronized (switchMap) { for (Iterator it = switchMap.keySet().iterator(); it.hasNext(); ) { actionComboBox.addItem(switchMap.get(it.next())); } } Object scriptAction = getScriptAction(switchMap); if (scriptAction != null) { actionComboBox.setSelectedItem(scriptAction); } } } }