private void layoutMainPanel() { initComponents(); FormLayout layout = new FormLayout("p:g", ""); DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.appendTitle(rb.getString("Message.TransToPrint")); builder.append(ButtonBarFactory.buildLeftAlignedBar(selectButton, clearButton, invertButton)); builder.nextLine(); builder.appendUnrelatedComponentsGapRow(); builder.nextLine(); builder.appendRow(RowSpec.decode("f:75dlu:g")); builder.append(new JScrollPane(table)); builder.nextLine(); builder.appendUnrelatedComponentsGapRow(); builder.nextLine(); builder.append(ButtonBarFactory.buildOKCancelBar(okButton, cancelButton)); getContentPane().add(builder.getPanel(), BorderLayout.CENTER); pack(); setMinimumSize(getSize()); }
protected JComponent createMasterPanel() { final FormLayout layout = new FormLayout( "l:p,2dlu,f:max(p;50dlu):g(.3) ,3dlu " + "l:p,2dlu,f:max(p;50dlu):g(.3) ", ""); final DefaultFormBuilder builder = new DefaultFormBuilder(layout); builder.setDefaultDialogBorder(); builder.setRowGroupingEnabled(true); builder.append("Fecha", fecha); builder.append("F. Pago", formaDePago, true); builder.append("Banco", bancoOrigen); builder.append("Referencia", referencia, true); builder.append("Cuenta Depósito", cuentaDeposito, true); builder.append("Importe", importe); builder.append("Pago", buildPagosbox(model.getPagoMPModel().getModel("depositoRow")), true); builder.append("Disponible", disponible); builder.append("Por pagar", saldoTotal); builder.append("Pendiente", saldoPendiente, true); final CellConstraints cc = new CellConstraints(); builder.append("Comentario"); builder.appendRow(new RowSpec("17dlu")); builder.add(new JScrollPane(comentario), cc.xywh(builder.getColumn(), builder.getRow(), 5, 2)); builder.nextLine(2); builder.append("Condonar", condonar); builder.append("Tipo de Facturas", tipoDoctos, true); ComponentUtils.decorateSpecialFocusTraversal(builder.getPanel()); return builder.getPanel(); }
private void layoutMainPanel() { initComponents(); 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); builder.nextLine(); builder.append(rb.getString("Label.DateFormat"), dateFormatCombo); }
private void layoutMainPanel() { initComponents(); 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)); }
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); }