Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX-8 - How to get the row count of a TableView?

How is it possible to get the number of rows of a TableView in a TableCell? I tried .getTableRow(), but that isn't what I need. I need it to find out, if the TableCell is the last Cell in the TableView. Or is there another way to figure this out?

regards

like image 633
S.Pro Avatar asked Oct 23 '14 12:10

S.Pro


1 Answers

Found the solution on my own. I'm very ashamed. :-)

getTableView().getItems().size()

That's it.

like image 171
S.Pro Avatar answered Oct 31 '22 17:10

S.Pro