public JPanel buildConstraintPanel(WindowInterface window, boolean addEmpty) {
initComponents(window, addEmpty);
FormLayout layout = new FormLayout(
"p,3dlu,30dlu,3dlu,p:grow,3dlu,30dlu,3dlu,p,3dlu,30dlu",
"p,3dlu,p,3dlu,p");
PanelBuilder builder = new PanelBuilder(layout);
// PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
CellConstraints cc = new CellConstraints();
if (excelReportEnum.useFrom()) {
builder.addLabel("�r:", cc.xy(1, 1));
builder.add(yearChooser, cc.xy(3, 1));
if (excelReportEnum.useTo()) {
builder.addLabel("Fra uke:", cc.xy(5, 1));
builder.addLabel("Til uke:", cc.xy(9, 1));
builder.add(comboBoxWeekTo, cc.xy(11, 1));
} else {
builder.addLabel("Uke:", cc.xy(5, 1));
}
builder.add(comboBoxWeekFrom, cc.xy(7, 1));
}
if (comboBoxReportType != null) {
builder.addLabel("Rapport:", cc.xyw(1, 3, 3));
builder.add(comboBoxReportType, cc.xyw(5, 3, 7));
}
if (excelReportEnum.useProductArea()) {
builder.addLabel("Produktomr�de:", cc.xyw(1, 5, 5));
builder.add(comboBoxProductArea, cc.xyw(6, 5, 6));
}
return builder.getPanel();
}