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.option.RegisterOptions.java

License:Open Source License

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

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

    builder.setDefaultDialogBorder();

    builder.appendSeparator(rb.getString("Title.Colors"));
    builder.append(buildColorPanel());
    builder.appendSeparator(rb.getString("Title.DefaultBehavior"));
    builder.append(sortableCheckBox);
    builder.append(registerFollowsCheckBox);
    builder.append(autoCompleteCheckBox);
    builder.append(buildCasePanel());

    builder.append(regDateCheckBox);
    builder.append(confirmTransDeleteCheckBox);
    builder.appendSeparator(rb.getString("Title.ReconcileSettings"));
    builder.append(disableAutoReconcileButton);
    builder.append(autoReconcileBothSidesButton);
    builder.append(autoReconcileIncomeExpenseButton);

}

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

License:Open Source License

private void layoutMainPanel() {
    initComponents();/*  w w w. j a  va  2 s  .  co 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.Fonts"));
    builder.append(rb.getString("Label.Monospace"), monoCombo);
    builder.append(rb.getString("Label.Proportional"), proportionalCombo);
}

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

License:Open Source License

private void layoutMainPanel() {
    initComponents();//from  w  w w . j  a  v  a2  s. com

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

    builder.setRowGroupingEnabled(true);
    builder.setDefaultDialogBorder();

    builder.appendSeparator(rb.getString("Title.Startup"));
    builder.append(openLastOnStartup, 3);

    builder.appendSeparator(rb.getString("Title.Shutdown"));
    builder.append(timeStampButton, 3);
    builder.append(removeBackupButton, 3);
    builder.append(rb.getString("Label.MaxBackupCount"), removeBackupCountSpinner);

    builder.appendSeparator(rb.getString("Title.BackgroundUpdate"));
    builder.append(updateCurrenciesButton, 3);
    builder.append(updateSecuritiesButton, 3);
}

From source file:jgnash.ui.wizards.file.NewFileFour.java

License:Open Source License

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

    FormLayout layout = new FormLayout("min(85dlu;d), 8dlu, min(65dlu;d):g(1.0)", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.ChooseAccounts"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(helpPane, 3);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("f:50dlu:g"));
    builder.append(new JScrollPane(accountList), new JScrollPane(accountTree));
}

From source file:jgnash.ui.wizards.file.NewFileOne.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();// w  w w  .j a v  a 2  s. c  o m
    FormLayout layout = new FormLayout("p, 8dlu, f:d:g, 4dlu, p", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.DatabaseCfg"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(helpPane, 3);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(rb.getString("Label.StorageType"), typeCombo);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(rb.getString("Label.DatabaseName"), dbNameField, dbNameButton);
    builder.nextLine();
    builder.append(overwriteLabel, 5);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
}

From source file:jgnash.ui.wizards.file.NewFileSummary.java

License:Open Source License

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

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

    builder.appendSeparator(rb.getString("Title.Summary"));
    builder.append(rb.getString("Label.FileName"), fileField);
    builder.append(rb.getString("Label.DefaultCurrency"), baseCurrencyField);

    JScrollPane scrollPane = new JScrollPane(currenciesList);
    scrollPane.setBorder(new LineBorder((Color) UIManager.getDefaults().get("TextArea.inactiveForeground")));
    builder.append(rb.getString("Label.Currencies"), scrollPane);
}

From source file:jgnash.ui.wizards.file.NewFileThree.java

License:Open Source License

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

    FormLayout layout = new FormLayout("min(65dlu;d):g(0.5), 8dlu, d, 8dlu, min(65dlu;d):g(0.5)", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.SelAvailCurr"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(helpPane, 5);

    builder.appendTitle(rb.getString("Title.Available"));
    builder.append("");
    builder.appendTitle(rb.getString("Title.Selected"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("f:d:g"));
    builder.append(new JScrollPane(aJList), buildCenterPanel(), new JScrollPane(cJList));
}

From source file:jgnash.ui.wizards.file.NewFileTwo.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();/* w w w .  j av a2  s  .  c  o  m*/
    FormLayout layout = new FormLayout("p, 8dlu, f:d:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);

    builder.appendSeparator(rb.getString("Title.DefDefCurr"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(helpPane, 3);

    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(rb.getString("Label.DefaultCurrency"), currencyCombo);
}

From source file:jgnash.ui.wizards.imports.ImportOne.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();// www. ja va  2s  . co m

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

    builder.appendSeparator(rb.getString("Title.SelDestAccount"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("p"));
    builder.append(helpPane, 3);

    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(rb.getString("Label.DestAccount"), accountCombo);
}

From source file:jgnash.ui.wizards.imports.ImportSummary.java

License:Open Source License

private void layoutMainPanel() {
    initComponents();//from  w  w  w  .jav a  2 s  . c  o  m

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

    builder.appendSeparator(rb.getString("Title.ImpSum"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(rb.getString("Label.DestAccount"), destLabel);
    builder.append(rb.getString("Label.NumTrans"), transCount);
}