cityField.setValidators(notNull());
final Form form = new Form();
form.addFields(firstNameField, lastNameField, emailField, street1Field, street2Field, cityField);
FieldGroup generalGroup = new FieldGroup("firstName", "lastName", "email");
// generalGroup.setLayoutHints(new LayoutHints().setEditorWidth("100%"));
FieldGroup addressGroup = new FieldGroup("Address", new String[]{"street1", "street2", "city"});
addressGroup.setHints(editorWidth("100%"));
addressGroup.setHints("street2", labelVisible(false));
SimpleFieldsRenderer renderer = new SimpleFieldsRenderer();
renderer.setHints(labelWidth("65px"));
renderer.addFieldGroup(generalGroup);
renderer.addFieldGroup(addressGroup);