Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems w/ JCheckBox's and TableModel

 
Steve Kiernan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
isSelected()
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic