How to make/fake a list of checkboxes...
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tannya_Peeters
Posted On:   Wednesday, April 11, 2001 05:49 PM

Hi,

I have lotsa checkboxes which I want to group in a JList. Each group/list sits in a tab...

Unfortunately the cells of a JList are not editable, and a checkbox needs to be editable to be able to de/select it.

Any suggestions? I'm thinking of creating a 1 column table to get something similar.

Thank you

Re: How to make/fake a list of checkboxes...

Posted By:   Scott_Stanchfield  
Posted On:   Wednesday, April 25, 2001 07:59 AM

Check out http://www.codeguru.com/java. They have examples of nesting checkboxes in various Swing components. If they don't have one for JList, look at JTree and JTable. Same concept applies.

Re: How to make/fake a list of checkboxes...

Posted By:   mark_webb  
Posted On:   Thursday, April 12, 2001 07:00 AM

I would do a one column JTable and create your own cell editor and cell renderer. It is really easy.
About | Sitemap | Contact