I am using addMouseListener (that has many method to implement)
and can add add keyListener also.
Is there a better way to get a row selected listener?
Thanks.
I am using addMouseListener (that has many method to implement) and can add add
Share
If you want to listen to row selection changes (i.e. not value changes inside the row), you can use this:
yourJTable.getSelectionModel().addListSelectionListener(yourListener);?