Forums Register Login

JTable and JCheckboxes

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
tried a revalidate()?
This is my favorite show. And this is my favorite tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1244 times.
Similar Threads
Checkboxes?
JTable JCheckBox Cell Editor works on strings -- badly
Using JCheckBox as CellRenderer in JList
getParameterMap and unselected checkboxes
Problem in Editing/Rendering a CheckBox in a JTable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:14:20.