I don't want to discourage you, but if you are a beginner you will probably find custom renderers and custom editors pretty challenging. Do you really have to use check boxes? Perhaps you can just use an ordinary multiple-selection JList for now?
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30
Easiest way with multiple selections is JList's getSelectedIndices method
public int[] getSelectedIndices()
Returns an array of all of the selected indices, in increasing order, or an empty array if nothing is selected
JamesCherrill
... trying to help
8,516 posts since Apr 2008
Reputation Points: 2,583
Solved Threads: 1,455
Skill Endorsements: 30
it too hard to implementing JList & Render with some of dirty hack, use JTable with one Column,
1) JTable with JCheckBox is represented with Boolean value only
2) no required any code for Renderer/Editor, because JTable knows Boolean value
3) JTable must be editable for Editor
4) everything here
mKorbel
Nearly a Posting Virtuoso
1,214 posts since Feb 2011
Reputation Points: 482
Solved Threads: 239
Skill Endorsements: 12