有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何向choicebox添加textfield值?

public ChoiceBox <String> new_make; // 
public TextField model; // 

public void OK (ActionEvent event) { // OK event
    new_make.getItems().add(model.getText()); // choice box new_make  
}

我的密码在这里 如何将模型文本字段值添加到新的\u make choicebox


共 (0) 个答案