private void layoutMainPanel() { initComponents(); FormLayout layout = new FormLayout("right:max(20dlu;pref), $lcgap, d, $lcgap, d:g", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout, this); builder.appendSeparator(rb.getString("Title.AccountInfo")); builder.rowGroupingEnabled(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.AccountNumber"), accountNumberField, 3); builder.nextLine(); builder.append(rb.getString("Label.AccountCode"), accountCodeField, 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.rowGroupingEnabled(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); }