int count=table.getSelectedRow();//获取你选中的行号(记录)
String getname= table.getValueAt(count, 1).toString();//读取你获取行号的某一列的值(也就是字段)
这样就可以达到效果。
int count=table.getSelectedRow();//获取你选中的行号(记录)
String getname= table.getValueAt(count, 1).toString();//读取你获取行号的某一列的值(也就是字段)
这样就可以达到效果。