Accessing nested properties in JavaFx TableView / TableColumn
问题 I havea TableView, and I access properties of the list's objects as follows. This works just fine. <TableColumn fx:id="dateColumn" editable="false" prefWidth="135.0" text="Date"> <cellValueFactory> <PropertyValueFactory property="date" /> </cellValueFactory> </TableColumn> However, I'd like to access a nested property of the object, for example: <TableColumn prefWidth="100.0" text="Course"> <cellValueFactory> <PropertyValueFactory property="house.bathroom"/> </cellValueFactory> </TableColumn>