JavaFx 2.1, 2.2 TableView update issue

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

    this worked for me

    @FXML 
    private void refreshTableView()
    {
      firstNameCol.setVisible(false);
      lastNameCol.setVisible(false);
      emailCol.setVisible(false); 
      firstNameCol.setVisible(true);
      lastNameCol.setVisible(true);
      emailCol.setVisible(true);
    } 
    

提交回复
热议问题