Get row by index from JTable

后端 未结 7 721
情歌与酒
情歌与酒 2021-01-07 10:32

How to get row with index i froj JTable ? I looked at member functions but there is nothing like getRowAt . Can anybody help ?

7条回答
  •  -上瘾入骨i
    2021-01-07 11:04

    There is no "row" object for a table, so nothing you could get with a getRow method.

    You can ask getValueAt() to get the individual values, use it for each column and you have your complete row.

提交回复
热议问题