How do you use a JavaFX TableView with java records?

Solution Use a lambda cell value factory instead of a PropertyValueFactory. For some explanation of the difference between the two, see: Java: setCellValuefactory; Lambda vs. PropertyValueFactory; advantages/disadvantages Why this works The issue, as you note, is that record accessors don’t follow standard java bean property naming conventions, which is what the PropertyValueFactory expects. For example, … Read more