Java Swing: JPanel
Posted on 2011-09-09
I have a class A that extends JPanel and implements ListSelectionListener.
When the user clicks on a table cells, please let me know how I can determine the row number, and column number of the clicked cell.
I feel I must do this within the method valueChanged(ListSelectionEvent arg0), but not sure how to do it.
If possible, please provide some sample code.