use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class ExceptionDialog method layoutMainPanel.
private void layoutMainPanel() {
FormLayout layout = new FormLayout("fill:max(80dlu;p):g", "f:max(120dlu;p):g, 6dlu, f:p");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
closeButton = new JButton(rb.getString("Button.Close"));
copyButton = new JButton(rb.getString("Button.CopyToClip"));
textArea = getTextArea(throwable);
builder.append(new JScrollPane(textArea));
builder.nextLine();
builder.nextLine();
builder.append(StaticUIMethods.buildRightAlignedBar(copyButton, closeButton));
getContentPane().add(builder.getPanel());
pack();
setMinimumSize(getSize());
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class OpenDatabaseDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
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")), fileField, fileButton);
builder.append(remoteButton, 4);
builder.append(rb.getString("Label.DatabaseServer"), hostField, 3);
builder.append(rb.getString("Label.Port"), portField, 3);
builder.appendSeparator(rb.getString("Title.FileLoginCredentials"));
builder.append(rb.getString("Label.Password"), passwordField, 3);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 5);
getContentPane().add(builder.getPanel());
updateForm();
pack();
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class RemoteConnectionDialog method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("p, 4dlu, fill:70dlu:g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
builder.append(rb.getString("Label.DatabaseServer"), hostField);
builder.append(rb.getString("Label.Port"), portField);
builder.append(rb.getString("Label.Password"), passwordField);
builder.nextLine();
builder.appendUnrelatedComponentsGapRow();
builder.nextLine();
builder.append(StaticUIMethods.buildOKCancelBar(okButton, cancelButton), 3);
getContentPane().add(builder.getPanel());
pack();
setResizable(false);
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class GenericCloseDialog method layoutMainPanel.
private void layoutMainPanel() {
FormLayout layout = new FormLayout("fill:p:g", "f:p:g, $ugap, f:p");
DefaultFormBuilder builder = new DefaultFormBuilder(layout);
builder.border(Borders.DIALOG);
closeButton = new JButton(rb.getString("Button.Close"));
builder.append(component);
builder.nextLine();
builder.nextLine();
builder.append(StaticUIMethods.buildCloseBar(closeButton));
getContentPane().add(builder.getPanel());
pack();
closeButton.addActionListener(this);
}
use of com.jgoodies.forms.builder.DefaultFormBuilder in project jgnash by ccavanaugh.
the class AccountOptions method layoutMainPanel.
private void layoutMainPanel() {
initComponents();
FormLayout layout = new FormLayout("right:p, $lcgap, max(75dlu;p):g", "");
DefaultFormBuilder builder = new DefaultFormBuilder(layout, this);
builder.border(Borders.DIALOG);
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);
}
Aggregations