JavaFx 2.1, 2.2 TableView update issue

后端 未结 7 1115
青春惊慌失措
青春惊慌失措 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:34

    I have found a simple workaround for triggering the refresh of the TableView in JavaFX 2.1 TableView refresh items. It solved the issue for me.

    Add this to your code:

    tableView.getColumns().get(0).setVisible(false);
    tableView.getColumns().get(0).setVisible(true);
    

提交回复
热议问题