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);
Widget formPanel = renderer.render(form);
formPanel.setWidth("300px");
SimpleButton validateButton = new SimpleButton("Validate", new ClickHandler() {
public void onClick(ClickEvent event) {
form.validate();