addComponent(row);
NativeSelect select = new NativeSelect("Drop Down Select");
row.addComponent(select);
ListSelect list = new ListSelect("List Select");
list.setNewItemsAllowed(true);
row.addComponent(list);
TwinColSelect tcs = new TwinColSelect("TwinCol Select");
tcs.setLeftColumnCaption("Left Column");
tcs.setRightColumnCaption("Right Column");
tcs.setNewItemsAllowed(true);
row.addComponent(tcs);
TwinColSelect tcs2 = new TwinColSelect("Sized TwinCol Select");
tcs2.setLeftColumnCaption("Left Column");
tcs2.setRightColumnCaption("Right Column");
tcs2.setNewItemsAllowed(true);
tcs2.setWidth("280px");
tcs2.setHeight("200px");
row.addComponent(tcs2);
for (int i = 1; i <= 10; i++) {
select.addItem("Option " + i);
list.addItem("Option " + i);
tcs.addItem("Option " + i);
tcs2.addItem("Option " + i);
}
}