I need to decouple the data reading from database process from database which will be stored in a dummy TableView.
Once this dummy table is set with all the data I would call the Platform.runLater to proceed with the UI update of the data in the FXML TableView. Something similar to:
@FXML
private TableView tblTask;
private TableView tblDummy;
.......
try {
//load all data from database in dummy
tblDummy = taskDAO.tableTask(loggedUser, tblDummy);
//Once the data is read copy all data in FXML TableView
Platform.runLater(new Runnable() {
public void run() {
//¿?¿?¿?¿?¿?¿?¿?¿?
}
});
....
Is there a straight way to copy the data from the dummy TableView to the FXML TableView?