You are creating and publishing data to a table
that never been referenced in your FXML
file and never been visible in the node graph.
You have to add a fx:id
Attribute to the TableView
element:
<TableView fx:id= "table "layoutX="172.0" layoutY="106.0" prefHeight="200.0" prefWidth="200.0">
Reference the table in your controller
@FXML
TableView<Person> table
Remove the final TableView<Person> table = new TableView<Person>();
the FXMLLoader
will initialize all the components for you.
See this example of using TableView
and FXML
.