Try it. I am using ListSelectionListener and it works for me. I added a listener to the Model table
jTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() { @Override public void valueChanged(ListSelectionEvent event) { if (jTable.getSelectedRow() > -1) {
source share