This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Row Selection Listener

Cory Lutton
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to Java and am trying to figure out how to attach a listener to a JTable that would let me know when a row has been selected. I have another JTable that has detail information related to one line in the original. Right now I just have all the detail for all lines in the original. Any help or examples would be great.

Also since I am using an AbstractTableModel, should the listener exist in this class rather than the main GUI class?

[ June 14, 2004: Message edited by: Cory Lutton ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!