获取JTable点击事件的行和列

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

  

posted @ 2021-05-27 14:54  信铁寒胜  阅读(504)  评论(0编辑  收藏  举报