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));
}
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);
}
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);
}
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);
}
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();
}
Aggregations