use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class CurrencyExchangeDialog 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.append(layoutTopPanel());
builder.appendSeparator(rb.getString("Title.ExchangeRate"));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.appendRow(RowSpec.decode("f:max(50dlu;p):g"));
builder.append(layoutMiddlePanel());
builder.appendSeparator();
builder.append(layoutBottomPanel());
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(new ButtonBarBuilder().addGlue().addButton(closeButton).build());
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class CurrencyExchangeDialog method layoutBottomPanel.
private JPanel layoutBottomPanel() {
FormLayout layout = new FormLayout("p, 8dlu, 60dlu:g, 8dlu, p", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.append(updateButton, progressBar, stopButton);
return builder.getPanel();
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class PrintCheckDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("p, 4dlu, 85dlu:g, 4dlu, p", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.rowGroupingEnabled(true);
builder.append(rb.getString("Label.CheckLayout"), layoutField, selectButton);
builder.append(rb.getString("Label.StartPos"), startSpinner);
builder.nextLine();
builder.append(incCheckBox, 5);
builder.rowGroupingEnabled(false);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(printButton, cancelButton), 5);
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class TransactionListDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("p:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.appendTitle(rb.getString("Message.TransToPrint"));
builder.append(StaticUIMethods.buildLeftAlignedBar(selectButton, clearButton, invertButton));
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.appendRow(RowSpec.decode("f:75dlu:g"));
builder.append(new JScrollPane(table));
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton));
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.
the class CurrenciesPanel method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("d:g(0.5), 8dlu, p, 8dlu, d:g(0.5)", "");
layout.addGroupedColumn(1);
layout.addGroupedColumn(5);
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
builder.appendTitle(rb.getString("Title.Available"));
builder.append("");
builder.appendTitle(rb.getString("Title.Current"));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.appendRow("fill:80dlu:g");
builder.append(new JScrollPane(aJList), buildCenterPanel(), new JScrollPane(cJList));
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(layoutCustomPanel(), 5);
builder.appendSeparator();
}
Aggregations