File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How do I get selected rows that have a check against them using check boxes in a table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How do I get selected rows that have a check against them using check boxes in a table" Watch "How do I get selected rows that have a check against them using check boxes in a table" New topic
Author

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

Sege Stephen
Ranch Hand

Joined: Oct 06, 2007
Posts: 51
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

Joined: Sep 28, 2010
Posts: 151
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I get selected rows that have a check against them using check boxes in a table
 
Similar Threads
jtable, table model, column headers
JCheckBox in JTable not working
JTable
JCheckBox in JTable
JTable Dynamic - Urgent