use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class NewFileTwo method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("p, 8dlu, f:d:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
builder.appendSeparator(rb.getString("Title.DefDefCurr"));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(helpPane, 3);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(rb.getString("Label.DefaultCurrency"), currencyCombo);
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class BudgetPeriodPanel method layoutMainPanel.
private void layoutMainPanel() {
FormLayout layout = new FormLayout("d:g", "d");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
setLayout(layout);
table = new AccountPeriodResultsTable(model);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.setFocusable(false);
table.setCellSelectionEnabled(false);
JTableHeader header = new JTableHeader(table.getColumnModel());
header.setReorderingAllowed(false);
header.setResizingAllowed(false);
header.setTable(table);
buildHeader(header);
buildFooter();
JTableUtils.packTables(table, footerTable);
builder.add(table, CC.xy(1, 1));
setBorder(ShadowBorder.getCompondShadowBorder());
ToolTipManager.sharedInstance().unregisterComponent(table);
ToolTipManager.sharedInstance().unregisterComponent(header);
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class BudgetWizardDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("p, $lcgap, f:p:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.appendRow(RowSpec.decode("f:p:g"));
builder.append(helpPane, 3);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(new JLabel(rb.getString("Label.Name")), ValidationFactory.wrap(budgetNameField));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(rb.getString("Label.Period"), budgetPeriodCombo);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(roundButton, 3);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 3);
getContentPane().add(builder.getPanel());
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class AccountRowFooterPanel method buildFooter.
private JComponent buildFooter() {
FormLayout layout = new FormLayout("d:g", "d");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, new JXPanel());
NumberFormat format = CommodityFormat.getFullNumberFormat(resultsModel.getBaseCurrency());
footerTable = new BudgetResultsTable(new FooterModel(), format);
footerTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
footerTable.setFocusable(false);
footerTable.setCellSelectionEnabled(false);
builder.add(footerTable, CC.xy(1, 1));
builder.border(ShadowBorder.getCompondShadowBorder());
return builder.getPanel();
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class CheckDesignDialog method buildRightPanel.
private JPanel buildRightPanel() {
FormLayout formLayout = new FormLayout("right:p, $lcgap, p:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(formLayout);
// JScrollPane fills and grows
builder.appendRow(RowSpec.decode("f:p:g"));
builder.append(new JScrollPane(objectList), 3);
builder.append(StaticUIMethods.buildAddRemoveBar(addButton, removeButton), 3);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.rowGroupingEnabled(true);
builder.append(rb.getString("Label.Type"), typeCombo);
builder.append(rb.getString("Label.Name"), nameField);
builder.append(rb.getString("Label.XPos"), xPosField);
builder.append(rb.getString("Label.YPos"), yPosField);
builder.rowGroupingEnabled(false);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(clearButton, applyButton), 3);
return builder.getPanel();
}
Aggregations