JavaFx表格视图TableView设置单元格可编辑(只需两步实现)

只需两步:

1.

tableView.setEditable(true);//表格设置为可编辑

2.

colUrl.setCellFactory(TextFieldTableCell.forTableColumn());//给需要编辑的列设置属性

猜你喜欢

转载自blog.csdn.net/qq_31384551/article/details/81219425