Connect TableView columns to the HashMap values
问题 I'm writing a simple crud-redactor, and there is a problem I stuck on: I have a class: public class Note { List<String> columnNames; HashMap<String, SimpleStringProperty> items; } which I need to somehow connect with a TableView via setCellValueFactory . For example I have 3 values in HashMap with keys "id" , "name" and "age" . So I want to have 3 columns in TableView which are connected with this HashMap and will represent its values after wrapping an array of Notes into ObservableList and