final FormField field1 = new FormField("field1");
formActivity.addFormField(field1);
field1.addValidator(new NotEmptyFieldValidator());
field1.addValidator(new DoubleFieldValidator());
final FormFieldRenderer field2Renderer = new TextBoxFormFieldRenderer("field2");
final FormField field2 = new FormField(field2Renderer);
formActivity.addFormField(field2);
final ListBoxFormFieldRenderer field3Renderer = new ListBoxFormFieldRenderer("field3");
field3Renderer.addItem("Choice 1", 1);
field3Renderer.addItem("Choice 2", 2);
field3Renderer.addItem("Choice 3", 3);
field3Renderer.addItem("Choice 4", 4);
final FormField field3 = new FormField(field3Renderer);
formActivity.addFormField(field3);
final FormFieldRenderer field4Renderer = new DateBoxFormFieldRenderer("field4");
final FormField field4 = new FormField(field4Renderer);
formActivity.addFormField(field4);
final FormFieldRenderer field5Renderer = new TextAreaFormFieldRenderer("field5");
final FormField field5 = new FormField(field5Renderer);
formActivity.addFormField(field5);
final TwinListBoxFormFieldRenderer<String> field6Renderer = new TwinListBoxFormFieldRenderer<String>("field6");
final FormField field6 = new FormField(field6Renderer);