Search in sources :

Example 36 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.

the class NewFileFour method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    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));
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder)

Example 37 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.

the class NewFileSummary method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    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);
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder) LineBorder(javax.swing.border.LineBorder) Color(java.awt.Color)

Example 38 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.

the class PartialTwo method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    FormLayout layout = new FormLayout("p, 8dlu, d:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
    builder.appendSeparator(rb.getString("Title.ModQIFTrans"));
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("p"));
    builder.append(helpPane, 3);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.appendRow(RowSpec.decode("f:85dlu:g"));
    builder.append(new JScrollPane(table), 3);
    builder.nextLine();
    builder.appendRelatedComponentsGapRow();
    builder.nextLine();
    builder.append(deleteButton);
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JScrollPane(javax.swing.JScrollPane) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder)

Example 39 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.

the class ImportSummary method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    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);
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder)

Example 40 with FormLayout

use of com.jgoodies.forms.layout.FormLayout in project jgnash by ccavanaugh.

the class AboutDialog method layoutMainPanel.

private void layoutMainPanel() {
    initComponents();
    FormLayout layout = new FormLayout("200dlu:g", "");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.border(Borders.DIALOG);
    builder.appendRow(RowSpec.decode("fill:200dlu:g"));
    builder.append(tabbedPane);
    if (acceptLicense) {
        acceptBox = new JCheckBox(rb.getString("Message.AcceptLicense"));
        closeButton = new JButton(rb.getString("Button.Close"));
        closeButton.addActionListener(this);
        builder.nextLine();
        builder.appendUnrelatedComponentsGapRow();
        builder.nextLine();
        builder.append(acceptBox);
        builder.nextLine();
        builder.appendUnrelatedComponentsGapRow();
        builder.nextLine();
        builder.append(StaticUIMethods.buildCloseBar(closeButton));
    }
    getContentPane().add(builder.getPanel());
    pack();
}
Also used : FormLayout(com.jgoodies.forms.layout.FormLayout) JCheckBox(javax.swing.JCheckBox) DefaultFormBuilder(com.jgoodies.forms.builder.DefaultFormBuilder) JButton(javax.swing.JButton)

Aggregations

FormLayout (com.jgoodies.forms.layout.FormLayout)250 DefaultFormBuilder (com.jgoodies.forms.builder.DefaultFormBuilder)122 CellConstraints (com.jgoodies.forms.layout.CellConstraints)97 JPanel (javax.swing.JPanel)90 JScrollPane (javax.swing.JScrollPane)60 JLabel (javax.swing.JLabel)44 JButton (javax.swing.JButton)36 BorderLayout (java.awt.BorderLayout)27 FormBuilder (com.jgoodies.forms.builder.FormBuilder)19 ButtonBarBuilder (com.jgoodies.forms.builder.ButtonBarBuilder)18 PanelBuilder (com.jgoodies.forms.builder.PanelBuilder)18 JTextField (javax.swing.JTextField)17 JCheckBox (javax.swing.JCheckBox)13 DatePanel (jgnash.ui.components.DatePanel)11 TextAdapter (org.apache.cayenne.modeler.util.TextAdapter)11 JRadioButton (javax.swing.JRadioButton)10 ButtonGroup (javax.swing.ButtonGroup)9 ActionEvent (java.awt.event.ActionEvent)8 AbstractAction (javax.swing.AbstractAction)8 JDialog (javax.swing.JDialog)8