You can also use your ListSelectionListener with JTable (see JavaDocs ListSelectionListener : JTable also implements it, so you will use it as for your JList).
See an example (but if you've already used it with a JList, you know how to use it with JTable too).
source
share