Reputation: 227
I need it to access the information inside a tableview in my program so I can display a window (stage) with more information of the elements in the selected rows of the table. Thank you very much.
Upvotes: 2
Views: 336
Reputation: 34528
To get selected item from table use next code:
table.getSelectionModel().getSelectedItem()
selection model also has other convenience methods to provide info about index, multiple selection, etc.
Upvotes: 2