initEditEventHandling();
FormLayout layout = new FormLayout(
"10dlu,p,3dlu,30dlu,3dlu,50dlu,10dlu",
"10dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,fill:30dlu,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.xyw(4, 2, 3));
builder.addLabel("�r:", cc.xy(2, 4));
builder.add(yearChooser, cc.xy(4, 4));
builder.addLabel("Uke:", cc.xy(2, 6));
builder.add(comboBoxWeek, cc.xy(4, 6));
builder.addLabel("Opplasting:", cc.xy(2, 8));
builder.add(dateChooser, cc.xyw(4, 8, 3));
builder.addLabel("Kommentar:", cc.xy(2, 10));
builder.add(new JScrollPane(textAreaTransportComment),
cc.xywh(4, 10, 3, 3));
builder.add(
ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
cc.xyw(2, 14, 5));
builder.appendRow(new RowSpec("5dlu"));
return new IconFeedbackPanel(validationResultModel, builder.getPanel());
}