我在javafx中的表视图中添加数据 . 我也正如图所示设置表格列,它们工作正常 . 对我错在哪里的任何评论?
c1 = new TableColumn<String, String>("First Name"); //c1 is column
c1.setCellValueFactory(new PropertyValueFactory<String,String>("Name"));
table.setItems(value); //table is tableview
table.getItems().add("My name");
table.getColumns().addAll(c1);
count++;