use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class AccountRowHeaderPanel method getFooter.
JComponent getFooter() {
FormLayout layout = new FormLayout("d:g", "d");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, new JPanel());
JTable table = new JTable(new GroupTableModel());
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
table.setFocusable(false);
table.setCellSelectionEnabled(false);
builder.add(table, CC.xy(1, 1));
builder.border(ShadowBorder.getCompondShadowBorder());
return builder.getPanel();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class CheckDesignDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
getContentPane().add(toolBar, BorderLayout.NORTH);
FormLayout formLayout = new FormLayout("p:g, 8dlu, f:$lcgap, 8dlu, p", "");
DefaultFormBuilder builder = new DefaultFormBuilder(formLayout);
builder.border(Borders.DIALOG);
builder.appendRow(RowSpec.decode("f:p:g"));
builder.append(buildLeftPanel());
builder.append(new JSeparator(SwingConstants.VERTICAL));
builder.append(buildRightPanel());
builder.appendSeparator();
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildHelpCloseBar(printButton, closeButton), 5);
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class BudgetPeriodPanel method buildFooter.
private void buildFooter() {
final Engine engine = EngineFactory.getEngine(EngineFactory.DEFAULT);
Objects.requireNonNull(engine);
final FormLayout layout = new FormLayout("d:g", "d");
final DefaultFormBuilder builder = new DefaultFormBuilder(layout, new JPanel());
final NumberFormat format = CommodityFormat.getFullNumberFormat(engine.getDefaultCurrency());
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());
periodFooter = builder.getPanel();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class CurrencyModifyDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("f:p:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.appendSeparator(rb.getString("Title.Currencies"));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.appendRow(RowSpec.decode("f:max(65dlu;p):g"));
builder.append(layoutTopPanel());
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildCloseBar(closeButton));
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class CurrencyModifyDialog method layoutTopPanel.
private JPanel layoutTopPanel() {
FormLayout layout = new FormLayout("r:p, $lcgap, max(55dlu;p)", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.rowGroupingEnabled(true);
builder.append(rb.getString("Label.Symbol"), symbolField);
builder.append(rb.getString("Label.Description"), descriptionField);
builder.append(rb.getString("Label.Scale"), scaleField);
builder.append(rb.getString("Label.Prefix"), prefixField);
builder.append(rb.getString("Label.Suffix"), suffixField);
JPanel right = builder.getPanel();
layout = new FormLayout("max(60dlu;p):g, 8dlu, p", "");
builder = new DefaultFormBuilder(layout);
JScrollPane pane = new JScrollPane(sourceList);
pane.setPreferredSize(new Dimension(50, 50));
builder.appendRow(RowSpec.decode("f:max(35dlu;p):g"));
builder.append(pane, right);
builder.appendRelatedComponentsGapRow();
builder.nextRow();
builder.append(StaticUIMethods.buildLeftAlignedBar(clearButton, applyButton), 3);
return builder.getPanel();
}
Aggregations