protected JComponent buildEditPanel(WindowInterface window) {
FormLayout layout = new FormLayout(
"10dlu,p,3dlu,80dlu,3dlu,170dlu,3dlu,p,10dlu",
"10dlu,p,3dlu,p,3dlu,p,3dlu,top:100dlu:grow,3dlu,p");
PanelBuilder builder = new PanelBuilder(layout);
// PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
CellConstraints cc = new CellConstraints();
builder.addLabel("Navn:", cc.xy(2, 2));
builder.add(textFieldName, cc.xy(4, 2));
builder.addLabel("Beskrivelse:", cc.xy(2, 4));
builder.add(textFieldDescription, cc.xyw(4, 4, 1));
builder.addLabel("Skisse:", cc.xy(2, 6));
builder.add(comboBoxSketch, cc.xyw(4, 6, 1));
// builder.add(checkBoxVilla, cc.xyw(4, 8, 1));
builder.addLabel("Produktomr�de:", cc.xy(2, 8));
builder.add(comboBoxProductArea, cc.xyw(4, 8, 1));
if (!((ConstructionTypeViewHandler) viewHandler).isMaster()) {
builder.add(buttonCopyMaster, cc.xyw(4, 10, 1));
}
builder.add(checkBoxAttributes, cc.xy(6, 2));
builder.add(buildAttributePanel(), cc.xywh(6, 4, 1, 5));
builder.add(checkBoxArticles, cc.xy(8, 2));
builder.add(buildArticlePanel(), cc.xywh(8, 4, 1, 5));
builder.add(
ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
cc.xyw(2, 10, 8));
builder.appendRow(new RowSpec("5dlu"));
return new IconFeedbackPanel(validationResultModel, builder.getPanel());
}