Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to programatically select row using JTable

843807Sep 1 2010 — edited Sep 1 2010
Using JTable what I would like to do is, as soon as a row is selected in the table hilight other rows (or change background color for other set of rows)?

What I know is, I can add a row selection listner and catch the event that a row was selected. But from there, how do I either highlight or make selected some other set of rows?

Thanks.
Ash.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2010
Added on Sep 1 2010
8 comments
5,208 views