修复双击打开文件的bug

main
刘江林 6 years ago
parent d1bde738ea
commit 29783932c2

@ -390,6 +390,7 @@ public class CSJHForm extends AbstractRendering {
table.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
if (table.getSelectedColumn() == 15) {
if (e.getClickCount() == 2) {
System.out.println("双击了");
int selectedRow = table.getSelectedRow(); // 获得选中行索引
@ -411,6 +412,8 @@ public class CSJHForm extends AbstractRendering {
}
}
}
}
});
}

Loading…
Cancel
Save