CheckboxGroup is with a lowercase b. Once you fix that you'll get another 3 compiler errors though, since JCheckBox (Swing) is not compatible with CheckboxGroup (AWT).
It appears you want to use a mutually exclusive selection: only one of the options. In that case, use a ButtonGroup with JRadioButton, not JCheckBox. Replace JCheckBox with JRadioButton and CheckboxGroup with ButtonGroup:
It should as it works with AbstractButton, but visually a JRadioButton is probably better here. A JCheckBox or JToggleButton doesn't say "only one option" like JRadioButton does.