`

swing JTBALE获取最新数据方法

阅读更多
int row=table.getSelectedRow();
int column=table.getSelectedColumn();

table.editCellAt(0, 0);//焦点移到0行0列,才能让表格编辑器中的最新数据赋于表格


String pi_name = (String)model.getValueAt(1, 1);//工程名称

String pi_des=(String)model.getValueAt(0, 1);//工程描述
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics