get latest value from jtable cell in java

后端 未结 3 2010
-上瘾入骨i
-上瘾入骨i 2021-01-22 06:54

Can someone give an example of question below: I have a jtable like below

plus  |  minus  |   total
  10  |    0    |     10
   0  |    2    |      8
   0  |             


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 07:31

    Call getValueAt(int row, int column). May return null for empty cells. Do not call this on the model as the table row number may not match the model row number if sorting is enabled and applied. Also the table column number may not match the model column number if table columns have been rearranged.

提交回复
热议问题