A Listener For JTable Row Selection Changed?
843805Apr 20 2007 — edited Apr 20 2007Never 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