JavaFx 2.1, 2.2 TableView update issue

后端 未结 7 1000
青春惊慌失措
青春惊慌失措 2021-02-06 17:41

My application uses JPA read data into TableView then modify and display them. The table refreshed modified record under JavaFx 2.0.3. Under JavaFx 2.1, 2.2, the table wouldn\'t

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 18:30

    See the answer to Updating rows in Tableview. Add these getters and it will just work.
    Additionally since the data is an ObservableList which is set as items to tableView, any changes to this data list will be reflected to the table.getItems() too. Namely no need to table.setItems(data) again.

提交回复
热议问题