Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can a TableView iterate over Rows and get Cells?

963802May 19 2013 — edited May 21 2013
I need to iterate over all the rows in a TableView without using Events. I would like to get the total number of rows, the TableRow, and a Cell from a specified TableColumn in the TableRow.

Something like this:
for(TableRow tableRow: tableView.getRows()){
    Cell cell = tableRow.getColumn(4).getCell();
    // do something to the cell 
}
Is this possible?

Edited by: Conzar on May 19, 2013 11:18 PM
This post has been answered by jsmith on May 20 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2013
Added on May 19 2013
7 comments
7,203 views