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!

A Listener For JTable Row Selection Changed?

843805Apr 20 2007 — edited Apr 20 2007
Never mind... Thought of a couple other things after I posted and found ListSelectionListener. This looks like it fulfills my requirement nicely. - cimmerian76
>>>
TableModelListener isn't what I am looking for here. Basically, I'm looking for something that behaves in a way that is analogous to
TreeSelectionListener's valueChanged(...). Perhaps I'm looking in the wrong places, but the only things I've found were RowSet listener (not even close)
and TableModelListener (not exactly what I'm looking for - I'm not concerned about data in the table changing).

The tool I'm writing displays additional information about the object in the row selected in an adjacent panel.
This display should change every time a user selects a different row.

I can mimic the behavior I want using a mouse listener on the table, so this isn't an emergency.
It's more about curiosity. If I can find something that produces this functionality directly, I would prefer to use that.
<<<

Message was edited by:
cimmerian76
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2007
Added on Apr 20 2007
0 comments
101 views