如何找出用户刚刚点击的JTable中的哪一行?
试试这个:
aJTable.rowAtPoint(evt.getPoint());
如果您只关心在JTable上听取选择:
jTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { int sel = jTable.getSelectedRow(); } });