I am trying to figure out why my following code snippet would not allow me to check multiple check boxes. Any assistance will be appreciated. Thanks in advance.

Code:
JCheckBox I1 = new JCheckBox ("Item 1");
JCheckBox I2 = new JCheckBox("Item 2");
JCheckBox I3 = new JCheckBox("Item 3");