且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从JTable单元获取值

更新时间:2023-12-03 15:38:40

你可以使用

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

其中 table 是表的名称和它会返回一个对象

where table is the name of the table and it will return an Object

通过这个获取单元格值。它可能对你有用。

Go through this Getting cell value. It may be useful for you.