use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class AccountListFilterDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("max(100dlu;pref):g(1.0)", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.appendSeparator(rb.getString("Title.AccountFilter"));
builder.append(accountCheck);
builder.nextLine();
builder.append(expenseCheck);
builder.nextLine();
builder.append(incomeCheck);
builder.nextLine();
builder.append(hiddenCheck);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildCloseBar(closeButton));
getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
pack();
setMinimumSize(getSize());
DialogUtils.addBoundsListener(this);
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class WaitMessagePanel method layoutPanel.
/**
* Builds the panel with the labels in the center.
*/
private void layoutPanel() {
initComponents();
FormLayout layout = new FormLayout("c:p:g", "c:p:g");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.append(messageLabel);
setLayout(new BorderLayout());
JPanel panel = builder.getPanel();
add(panel, BorderLayout.CENTER);
setAlpha(0.4f);
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class YesNoDialog method layoutMainPanel.
private void layoutMainPanel(final int messageType) {
FormLayout layout = new FormLayout("p, $lcgap, fill:p:g", "f:p:g, $ugap, f:p");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
noButton = new JButton(rb.getString("Button.No"));
yesButton = new JButton(rb.getString("Button.Yes"));
builder.append(new JLabel(getIconForType(messageType)), component);
builder.nextLine();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(yesButton, noButton), 3);
getContentPane().add(builder.getPanel());
pack();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class WizardDialog method buildTaskPanel.
private JPanel buildTaskPanel() {
FormLayout lay = new FormLayout("f:p", "");
DefaultFormBuilder builder = new DefaultFormBuilder(lay);
builder.appendSeparator(rb.getString("Title.Steps"));
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.appendRow(RowSpec.decode("f:d:g"));
builder.append(taskList);
JPanel panel = builder.getPanel();
panel.setBackground((Color) UIManager.getDefaults().get("List.background"));
panel.setOpaque(false);
return panel;
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class YahooSecurityHistoryImportDialog method layoutMainPanel.
private void layoutMainPanel() {
FormLayout layout = new FormLayout("r:p, $lcgap, 48dlu:g, $ugap, r:p, $lcgap, 48dlu:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
JScrollPane scrollPane = new JScrollPane(securityList);
scrollPane.setAutoscrolls(true);
builder.append(rb.getString("Label.StartDate"), startField);
builder.append(rb.getString("Label.EndDate"), endField);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildLeftAlignedBar(selectAllButton, clearAllButton, invertAllButton), 7);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.appendRow("f:p:g");
builder.append(rb.getString("Label.Security"), scrollPane, 5);
builder.nextLine();
builder.appendRelatedComponentsGapRow();
builder.nextLine();
builder.append(bar, 7);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 7);
getContentPane().add(builder.getPanel());
pack();
}
Aggregations