javafx how to get selected data from tableview using FXML

前端 未结 1 1912

I am working on a project a i want to get the selected data of tableview but i am using FXML.

I have codes for no-FXML but i am unable to use it for FXML.

code:<

相关标签:
1条回答
  • 2021-01-26 17:05

    If you want the selected row index, then use

    table.getSelectionModel().getSelectedIndex();
    
    0 讨论(0)
提交回复
热议问题