要更新您的组合框,您可以使用类似的东西。// due to order problem, transfer of elements from map to combo box have sence // for ordered maps, like LinkedHashMap or TreeMapMap<String, String> strMap = new LinkedHashMap<>();// fill map...JComboBox<String> combo = new JComboBox<>();// some code...// now update the combo box contentcombo.setModel(new DefaultComboBoxModel<>(strMap.values().toArray(new String[0])));