Aug
13
|
myTable.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { JTable table = (JTable) e.getSource(); int column = table.columnAtPoint(e.getPoint()); int row = table.rowAtPoint(e.getPoint()); System.out.println("Column: "+column); System.out.println("Row: "+row); } });
Leave a Reply
You must be logged in to post a comment.