How can the Checkbox class be used to create a radio button

By associating Checkbox objects with a CheckboxGroup.