How to properly use JavaFX TableView and ObservableList classes?
问题 I got a class where I receive some collection structure: public class YIFY { private static List<Pelicula> resultados; public static void setResultados(List<Pelicula> resultados) { YIFY.resultados = resultados; } } Later, at another class I associate the contents of such List to a TableView . However I create an FXCollections.observableArrayList() which is set as the bind element to the table. This is how I do it: peliculas = FXCollections.observableArrayList(YIFY.getResultados());