JCheckBox in JList
2 posts in topic
Flat View  Flat View

Posted By:   Anton_Chmelev
Posted On:   Monday, April 16, 2001 06:43 AM

I wanted to fill JList with JCheckBox items,
so I created custom list cell renderer
and derived it from JCheckBox.

The problem is that check boxes don't get any events...
What should be done to forward ActionEvent's
from the JList to inner JCheckBox'es?

Re: JCheckBox in JList

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

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

Re: JCheckBox in JList

Posted By:   Kelly_Ryan  
Posted On:   Tuesday, April 17, 2001 06:09 AM

You would be better off using a 1 column JTable.
About | Sitemap | Contact