i have a checkbox group and four check boxes, how is it i would get ones thats seleceted.

i've tried:

c.getSelectedCheckbox

and also

a[1].getState

but neither of these work dispite being copied & pasted from the java documentation.

anyone know what i'm doing wrong?