mainComponent = tabbedPane;
return builder.getPanel();
}
private JComponent createGeneralPanel(){
FieldComponentMap map = createMap();
FormLayout layout = new FormLayout(
"max(50dlu;pref), 3dlu, 90dlu, 10dlu, p, 3dlu,max(90dlu;pref),60dlu", // extra padding on right is for estimated field //$NON-NLS-1$
"p,3dlu,p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu,p, 3dlu,p,3dlu,p,3dlu,p, 3dlu,p,3dlu,p, 6dlu, fill:50dlu:grow"); //$NON-NLS-1$
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
CellConstraints cc = new CellConstraints();
builder.setDefaultDialogBorder();
builder.add(createHeaderFieldsPanel(map),cc.xyw(builder.getColumn(), builder
.getRow(), 8));
builder.nextLine(2);
map.append(builder,"Field.manager"); //$NON-NLS-1$
builder.nextLine(2);
map.appendSometimesReadOnly(builder,"Field.startDate"); //$NON-NLS-1$
map.append(builder,"Field.currentDate"); //$NON-NLS-1$
builder.nextLine(2);
map.appendSometimesReadOnly(builder,"Field.finishDate"); //$NON-NLS-1$
map.append(builder,"Field.statusDate"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.forward"); //$NON-NLS-1$
builder.nextColumn(2);
map.append(builder,"Field.baseCalendar"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.priority"); //$NON-NLS-1$
map.append(builder,"Field.projectStatus"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.projectType"); //$NON-NLS-1$
map.append(builder,"Field.expenseType"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.projectDivision"); //$NON-NLS-1$
map.append(builder,"Field.projectGroup"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.netPresentValue"); //$NON-NLS-1$
map.append(builder,"Field.benefit"); //$NON-NLS-1$
builder.nextLine(2);
map.append(builder,"Field.risk"); //$NON-NLS-1$
builder.nextLine(2);
if (!Environment.getStandAlone()){
map.append(builder,"Field.accessControlPolicy",3); //$NON-NLS-1$
builder.nextLine(2);
}
Collection extraFields = FieldDictionary.extractExtraFields(FieldDictionary.getInstance().getProjectFields(),false);
JComponent extra = createFieldsPanel(map, extraFields);
if (extra != null) {