📅  最后修改于: 2022-03-11 14:58:10.258000             🧑  作者: Mango
ComboBox comboBox = new ComboBox<>();
comboBox.getItems().add("Item 1");
comboBox.getItems().add("Item 2");
comboBox.valueProperty().addListener((e) -> {
comboBox.setDisable(true);
});