FormFactory.DEFAULT_ROWSPEC, FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
CellConstraints cc = new CellConstraints();
panel.add(new JLabel(getMessage("parentForm.label")), cc.xy(1, 1));
panel.add(builder.getForm(), cc.xy(3, 3));
CommandGroup parentFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
getEnableFormModelCommand(), getReadOnlyFormModelCommand(), getValidatingFormModelCommand() });
panel.add(parentFormcommandGroup.createButtonBar(), cc.xy(3, 5));
panel.add(new JLabel(getMessage("childForm.label")), cc.xy(1, 7));
childForm = new ChildForm();
childForm.setMessageArea(getMessageArea());
panel.add(childForm.getControl(), cc.xy(3, 9));
CommandGroup childFormcommandGroup = CommandGroup.createCommandGroup(new ActionCommand[] {
childForm.getEnableFormModelCommand(), childForm.getReadOnlyFormModelCommand(),
childForm.getValidatingFormModelCommand() });
panel.add(childFormcommandGroup.createButtonBar(), cc.xy(3, 11));
addChildForm(childForm);
newSingleLineResultsReporter(ParentChildFormDialog.this);
return panel;
}