Java – get value from JTable cell

I listed editable columns in JTable

When I finish editing the cell, I want the old value of a cell

Solution

You can get this value by using

table. getModel(). getValueAt(row_index,col_index);

Where table is the name of the table, which will return an object

Through this getting cell value It may be useful to you

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>