Why should I avoid using PropertyValueFactory in JavaFX?
TL;DR: You should avoid PropertyValueFactory and similar classes because they rely on reflection and, more importantly, cause you to lose helpful compile-time validations (such as if the property actually exists). Replace uses of PropertyValueFactory with lambda expressions. For example, replace: nameColumn.setCellValueFactory(new PropertyValueFactory<>(“name”)); With: nameColumn.setCellValueFactory(data -> data.getValue().nameProperty()); (assumes you’re using Java 8+ and you’ve defined the … Read more