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 problems w/ JCheckBox's and TableModel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problems w/ JCheckBox Watch "problems w/ JCheckBox New topic
Author

problems w/ JCheckBox's and TableModel

Steve Kiernan
Greenhorn

Joined: Nov 07, 2001
Posts: 6
I need some guidance in figuring out this little problem. I have a Scrollable JTable which needs to obtain data from a GUI that I've created. The GUI contains three different groups of checkbox's. I can't figure out what method to use to get the selected checkbox's in each group. I've tried using getSelection() with no avail. Please any examples or tips would be greatly appreciated.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
isSelected()
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Steve,
I usually use the action command to figure out which is set. You can do something like the code below.

Regards,
Manfred.
Steve Kiernan
Greenhorn

Joined: Nov 07, 2001
Posts: 6
Fantastic, got it, Thanks

Originally posted by Manfred Leonhardt:
[B]Hi Steve,
I usually use the action command to figure out which is set. You can do something like the code below.

Regards,
Manfred.[/B]

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems w/ JCheckBox's and TableModel