Example usage for com.jgoodies.forms.builder DefaultFormBuilder appendSeparator

List of usage examples for com.jgoodies.forms.builder DefaultFormBuilder appendSeparator

Introduction

In this page you can find the example usage for com.jgoodies.forms.builder DefaultFormBuilder appendSeparator.

Prototype

public JComponent appendSeparator(String text) 

Source Link

Document

Adds a separator with the given text that spans all columns.

Usage

From source file:jgnash.ui.account.AccountPanel.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*from ww w .ja va2 s. c om*/

    FormLayout layout = new FormLayout(
            "right:max(20dlu;pref), $lcgap, max(50dlu;min):grow(1.0), $lcgap, max(50dlu;min):grow(1.0)", "");

    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.AccountInfo"));
    builder.setRowGroupingEnabled(true);
    builder.append(rb.getString("Label.Name"), nameField, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.Description"), descriptionField, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.AccountID"), codeField, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.BankID"), bankIdField, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.Currency"), currencyCombo, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.Securities"), securityButton, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.AccountType"), accountTypeCombo, 3);
    builder.nextLine();
    builder.append(rb.getString("Label.AccountOptions"), lockedCheckBox, hideCheckBox);
    builder.nextLine();
    builder.append("", placeholderCheckBox, excludeBudgetCheckBox);
    builder.setRowGroupingEnabled(false);
    builder.appendSeparator(rb.getString("Title.ParentAccount"));
    builder.append(parentButton, 5);
    builder.appendSeparator(rb.getString("Title.Notes"));

    JScrollPane pane = new JScrollPane(notesArea);
    pane.setAutoscrolls(true);
    builder.appendRow("f:60dlu:g(1.0)");
    builder.append(pane, 5);
}

From source file:jgnash.ui.account.AmortizeDialog.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*from w ww .j  a v a  2s  . c o m*/

    FormLayout layout = new FormLayout("right:max(40dlu;pref), $lcgap, max(75dlu;pref):grow(1.0)", "");

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();

    builder.setRowGroupingEnabled(true);

    builder.appendSeparator(rb.getString("Title.AmortizationSetup"));

    builder.append(rb.getString("Label.AnIntRate"), interestField);
    builder.nextLine();
    builder.append(rb.getString("Label.OrigLoanAmt"), loanAmountField);
    builder.nextLine();
    builder.append(rb.getString("Label.LoanTerm"), loanTermField);
    builder.nextLine();
    builder.append(rb.getString("Label.PayPerTerm"), payPeriodsField);
    builder.nextLine();
    builder.append(rb.getString("Label.CompPerTerm"), intPeriodsField);
    builder.nextLine();
    builder.append(rb.getString("Label.FirstPayDate"), dateField);
    builder.nextLine();
    builder.append(rb.getString("Label.EscrowPmi"), feesField);
    builder.nextLine();
    builder.setLeadingColumnOffset(2);
    builder.append(useDaysButton);
    builder.setLeadingColumnOffset(0);
    builder.nextLine();
    builder.append(rb.getString("Label.CompDaysPerYear"), daysField);

    builder.appendSeparator(rb.getString("Title.TransactionSetup"));

    builder.append(rb.getString("Label.InterestAccount"), interestAccButton);
    builder.nextLine();
    builder.append(rb.getString("Label.BankAccount"), bankAccButton);
    builder.nextLine();
    builder.append(rb.getString("Label.FeesAccount"), feesAccButton);
    builder.nextLine();
    builder.append(rb.getString("Label.Payee"), payeeField);
    builder.nextLine();
    builder.append(rb.getString("Label.Memo"), memoField);

    builder.nextLine();
    builder.appendUnrelatedComponentsGapRow();
    builder.nextLine();

    builder.append(ButtonBarFactory.buildOKCancelBar(okButton, cancelButton), 3);

    getContentPane().add(builder.getPanel(), BorderLayout.CENTER);
}

From source file:jgnash.ui.commodity.CurrencyExchangeDialog.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*  w  w w.  j  a  v  a2s . co  m*/

    FormLayout layout = new FormLayout("f:p:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    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(ButtonBarFactory.buildCloseBar(closeButton));

    getContentPane().add(builder.getPanel(), BorderLayout.CENTER);

    pack();

    setMinimumSize(getSize());
}

From source file:jgnash.ui.commodity.CurrencyModifyDialog.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();// ww w  .  ja v a 2 s  . c  om

    FormLayout layout = new FormLayout("f:p:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);

    builder.setDefaultDialogBorder();
    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(ButtonBarFactory.buildCloseBar(closeButton));

    getContentPane().add(builder.getPanel(), BorderLayout.CENTER);

    pack();

    setMinimumSize(getSize());
}

From source file:jgnash.ui.commodity.SecurityModifyPanel.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*from ww w.ja va  2  s .co  m*/

    FormLayout layout = new FormLayout("p:g, 8dlu, p", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.CommoditiesSecurities"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("fill:p:g"));
    builder.append(new JScrollPane(securityList), layoutRightPanel());
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(layoutButtonPanel(), 3);
}

From source file:jgnash.ui.components.ChangeDatabasePasswordDialog.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();//from  w w w.ja va 2 s .com

    FormLayout layout = new FormLayout("p, 4dlu, fill:70dlu:g, 1dlu, d", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.border(Borders.DIALOG);

    builder.append(new JLabel(rb.getString("Label.DatabaseName")), ValidationFactory.wrap(fileField),
            fileButton);

    builder.append(rb.getString("Label.Password"), passwordField, 3);

    builder.appendSeparator(rb.getString("Title.NewPassword"));

    builder.append(rb.getString("Label.NewPassword"), newPasswordField, 3);
    builder.append(rb.getString("Label.ConfirmPassword"), ValidationFactory.wrap(newPasswordFieldVal), 3);

    builder.nextLine();
    builder.appendUnrelatedComponentsGapRow();
    builder.nextLine();
    builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 5);

    getContentPane().add(builder.getPanel());

    pack();
}

From source file:jgnash.ui.components.wizard.WizardDialog.java

License:Open Source License

private JPanel buildTaskPanel() {
    FormLayout lay = new FormLayout("f:p", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(lay);
    builder.appendSeparator(rb.getString("Title.Steps"));
    builder.nextLine();//from   w w w  . j  a va 2s.  co m
    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;
}

From source file:jgnash.ui.option.AccountOptions.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();//from w  ww . ja va2  s. co  m

    FormLayout layout = new FormLayout("right:p, $lcgap, max(75dlu;p):g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.setDefaultDialogBorder();

    builder.appendSeparator(rb.getString("Title.Display"));
    builder.append(rb.getString("Label.AccountSeparator"), accountSeparatorField);
    builder.appendSeparator(rb.getString("Title.Terms"));
    builder.append(useAccountTermsCheckBox, 3);
    builder.appendSeparator(rb.getString("Title.ReverseAccountBalances"));
    builder.append(noneButton, 3);
    builder.append(creditAccountsButton, 3);
    builder.append(incomeExpenseAccountsButton, 3);
}

From source file:jgnash.ui.option.GeneralOptions.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*from w ww.  j  a  v a 2 s  . c  o m*/

    FormLayout layout = new FormLayout("right:p, $lcgap, max(75dlu;p):g", "");

    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
    builder.setRowGroupingEnabled(true);
    builder.setDefaultDialogBorder();

    builder.appendSeparator(rb.getString("Title.Display"));
    builder.append(animationsEnabled, 3);
    builder.append(rb.getString("Label.NimbusFontSize"), nimbusFontSpinner);

    builder.appendSeparator(rb.getString("Title.Defaults"));
    builder.append(numButton, 3);

    builder.appendSeparator(rb.getString("Title.Entry"));
    builder.append(selectOnFocusCheckBox, 3);
}

From source file:jgnash.ui.option.NetworkOptions.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();//from ww w .  ja v  a2s.co m

    FormLayout layout = new FormLayout("right:p, $lcgap, max(55dlu;p), $lcgap, min:g", "");

    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
    builder.setRowGroupingEnabled(true);
    builder.setDefaultDialogBorder();

    builder.appendSeparator(rb.getString("Title.HTTPProxy"));
    builder.append(proxyCheckBox, 5);
    builder.append(rb.getString("Label.Host"), hostField, 3);
    builder.append(rb.getString("Label.Port"), portField, 3);
    builder.append(authCheckBox, 5);
    builder.append(rb.getString("Label.UserName"), nameField, 3);
    builder.append(rb.getString("Label.Password"), passwordField, 3);

    builder.appendSeparator(rb.getString("Title.Connection"));
    builder.append(rb.getString("Label.ConnTimeout"), connectionTimeout);
    builder.append(rb.getString("Word.Seconds"));
}