Java Swing tutorials.
When selection of table or list is changed or is changing, then list selection event takes place. From an object, these list selection events get fired which result in implementation of interface ListSelectionModel. To get the list selection model of the table, either use getColumnModel().getSelectionModel() or getSelectionModel method.
For detection of the list selection events, register listener at the list selection model which is appropriate. An option to register the listener