I have JavaFx application with TableView and MySQL database.
I have create entity model(Products) from database.
Have ObservableList<Products> proList;
How i can fill this proList from database and then bind my @FXML private TableView<Products> tableView;?
Im very very new in JavaFx.
Thanks
In your start/initialize method,
First load your entity list (assuming JPA):
Second init the ObservableList with fetched data:
Third set the items of the table view:
Note that any changes (add/remove) made to proList will be reflected to tableView.getItems() too.