
((DefaultTableModel) table.getModel()).addRow(dataVector)//添加空白行
int count=table.getRowCount()//获得总行数
table.requestFocus()
table.setRowSelectionInterval(count-1, count-1)//最后一行获得焦点
欢迎分享,转载请注明来源:内存溢出

((DefaultTableModel) table.getModel()).addRow(dataVector)//添加空白行
int count=table.getRowCount()//获得总行数
table.requestFocus()
table.setRowSelectionInterval(count-1, count-1)//最后一行获得焦点
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)