i had a problem in implementing a check box inside a table and also to give actions for that..
i got a table having 4 columns and 47 rows and i need to change the color of the particular row
when i select the check box and change the color of the row when i deselect it hereby i am pasting the code... please help me
So, what is the exact issue that you are getting? Does the check box appear? What happens when you click on it?
Also, in your editor, why do you keep creating new instances of JCheckBox in the getTableCellEditorComponent method? I think that is not needed.
SCJP 1.4, OCMJEA/SCEA 5.0.
posted 6 years ago
to ranganathan sir
Actually i got a table of 4 columns and 47 rows .
here i got the check box but i am facing some problem in that .
i need like this if am selecting the check box i should change the color of another cell and if i unchecked it should change to different color..