I want to populate a TableView
and I don\'t know why it\'s empty. I have the following code:
public class StudentTeacherManagementController {
p
First of all, you must set Cell Value Factory for each column of the table in initialize method:
@Override
public void initialize(URL url, ResourceBundle rb) {
lastnameCol.setCellValueFactory(new PropertyValueFactory<>("lastName"));
...
Instead of tableView.getItems.addAll
use tableView.setItems
.