S.Pro
S.Pro

Reputation: 634

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

Upvotes: 5

Views: 19447

Answers (1)

S.Pro
S.Pro

Reputation: 634

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

getTableView().getItems().size()

That's it.

Upvotes: 27

Related Questions