Mam wątek, który po zakończeniu powinien uaktualnić TableView. Jednak mimo, że funkcja zostaje wywołana to dane się nie uaktualniają.
Thread backgroundThread = new Thread(task);
backgroundThread.setDaemon(true);
task.setOnSucceeded(tEvent -> {
System.out.println("Success");
ObservableList<FileForTableView> list = getDirectoryContent(task.getDestination());
rightTableView.setItems(list);
loadLang(lang);
});
backgroundThread.start();