int row =((JTable)e.getSource()).rowAtPoint(e.getPoint()); //获得行位置 int col=((JTable)e.getSource()).columnAtPoint(e.getPoint());