• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable Row Selection Listener  RSS feed

 
Cory Lutton
Greenhorn
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?

Thanks
[ June 14, 2004: Message edited by: Cory Lutton ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!