This demonstrates the flexible layout capabilities of the CheckboxGroup and RadioGroup classes. It also shows that you can validate checkboxes/radios as a group — try submitting the form before changing any values to see this.
The js is not minified so it is readable. See check-radio.js.