How can my program know when a user has selected another row in a JTable?

Anjum Khan

A very good program example is given at Java tutorial (

Just remember, because of MVC you don't write code for the JTable event but for ListSelectionModel of the table.

To further understand there is another FAQ entry within jGuru FAQs, showing how select a row in a table:
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact