Java – get value from JTable cell
•
Java
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
二维码