}
private void makeSeparatorForm() {
newForm.setLabelAlign(Form.ALIGN_RIGHT);
newForm.setButtonAlign(Form.ALIGN_RIGHT);
FieldSeparator contactSeparator = new FieldSeparator("contactDetails");
newForm.add(contactSeparator); // unlike the FieldSet, we just add the separator to the Form
TextField name = new TextField("name", "Name", 30);
newForm.add(name); // without adding the fields to it.
EmailField email = new EmailField("email");
newForm.add(email);
FieldSeparator feedbackSeparator = new FieldSeparator("feedbackDetails");
newForm.add(feedbackSeparator);
TextArea comment = new TextArea("Comment");
newForm.add(comment);
Checkbox inform = new Checkbox("inform","Yes, I agree!");
newForm.add(inform);
// Separator without a "legend": much like a HR element but with a consistent style with the other separators.
FieldSeparator separator = new FieldSeparator("separator","");
newForm.add(separator);
newForm.add(new Submit("ok", " OK ", this, "onOkClick1"));
newForm.add(new PageSubmit("cancel", HomePage.class));
}