• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable and JCheckboxes

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to have a row full of JCheckboxes and to be able to treat them just like a ButtonGroup with JRadioButton...
I�ve tried to inherit a DefaultCellEditor, store all the checkboxes in a List, and later manipulate those checkboxes. I got completely surprised though, when I noticed my operations over the checkboxes are not reflected on the table. Even if I call setSelected(true), the state of the checkbox is selected, but on the table it still remains unchecked.

Any idea why?
Thanks in advance
 
Grub de Bliek
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tried a revalidate()?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic