Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I get selected rows that have a check against them using check boxes in a table

 
Sege Stephen
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I get every row in a JTable that has a a tick in the check box column?

I need to read this into another text area. Here is a sample code I found on the internet that puts a check in a check box for each selected row

 
Kevin Workman
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sege Stephen wrote:How do I get every row in a JTable that has a a tick in the check box column?


What did you try? Your code exposes a pretty obvious way to get the value in a certain cell. Pasting together code you found on the internet is not the way to go. Read up on the API for JTable and AbstractTableModel (and DefaultTableModel while you're at it) until you actually understand what the code is doing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic