0
我通过这段代码填写在NetBeans一个JTable(tbl_student):JTable中选择一行为界,SQL服务器
String[][] result;
result = stu.Search(txt_search.getText());
String hdr[] = {"code", "name", "family"};
tbl_student = new JTable(result, hdr);
jScrollPane1.setViewportView(tbl_student);
tbl_student.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
,搜索()函数是一个从表中选择在SQL Server中的所有查询数据库。 现在,我想在此表中查找选定的行。我该怎么做? 我的代码在这个jtable的鼠标点击事件不起作用! 我能做什么?
你能提供更多的代码,什么是stu?它的类型是什么? – niceman