checkboxes

Giganews Newsgroups
Subject: checkboxes
Posted by:  x-r…@gmx.de (simon)
Date: 8 Sep 2003

Hi,

I want to generate an array of checkboxes but this doesn't work. Can
anyone help, please?

int NumBoxes = 4;
CheckboxField[] Checkbox = new CheckboxField[NumBoxes];

Checkbox[0] = new CheckBoxField("One", false);
Checkbox[1] = new CheckBoxField("Two", false);
Checkbox[2] = new CheckBoxField("Three", false);
Checkbox[3] = new CheckBoxField("Four", false);

add(Checkbox);

Thanks, Simon

Replies