views:

12

answers:

1

How can I check if a JCheckBox is checked?

+2  A: 

Use the isSelected method.

You can also use an ItemListener so you'll be notified when it's checked or unchecked.

Matthew Flaschen