use of com.jgoodies.forms.builder.DefaultFormBuilder 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.builder.DefaultFormBuilder 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();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class SecuritiesHistoryDialog method layoutMainPanel.
private JPanel layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("r:p, $lcgap, max(75dlu;p):g(0.5), 8dlu, r:p, $lcgap, max(75dlu;p):g(0.5)", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.appendRow(RowSpec.decode("f:p:g"));
builder.append(new JScrollPane(table), 7);
builder.nextLine();
builder.append(chartPanel, 7);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.rowGroupingEnabled(true);
builder.append(rb.getString("Label.Security"), securityCombo, 5);
builder.nextLine();
builder.append(rb.getString("Label.Date"), dateField);
builder.append("", updateButton);
builder.nextLine();
builder.append(rb.getString("Label.Close"), closeField);
builder.append(rb.getString("Label.Volume"), volumeField);
builder.nextLine();
builder.append(rb.getString("Label.High"), highField);
builder.append(rb.getString("Label.Low"), lowField);
builder.rowGroupingEnabled(false);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(buildButtonBar(), 7);
return builder.getPanel();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class NotificationDialog method layoutMainPanel.
private void layoutMainPanel() {
FormLayout layout = new FormLayout("right:p, 4dlu, fill:p:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
cancelButton = new JButton(rb.getString("Button.RemindLater"));
okButton = new JButton(rb.getString("Button.AckSel"));
table = new FormattedJTable(model);
table.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.getSelectionModel().addListSelectionListener(this);
table.setColumnSelectionAllowed(false);
JScrollPane scrollPane = new JScrollPane(table);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
scrollPane.setAutoscrolls(true);
builder.appendRow(RowSpec.decode("fill:80dlu:g"));
builder.append(scrollPane, 3);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(rb.getString("Label.RemindLater"), periodCombo);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 3);
getContentPane().add(builder.getPanel());
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class ReconcileDialog method buildStatPanel.
private JPanel buildStatPanel() {
FormLayout layout = new FormLayout("left:p, 8dlu, right:65dlu:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.rowGroupingEnabled(true);
builder.append(rb.getString("Label.OpeningBalance"), openingBalanceLabel);
builder.append(rb.getString("Label.TargetBalance"), targetBalanceLabel);
builder.append(rb.getString("Label.ReconciledBalance"), reconciledBalanceLabel);
builder.appendSeparator();
builder.append(rb.getString("Label.Difference"), differenceLabel);
return builder.getPanel();
}
Aggregations