Example usage for com.jgoodies.forms.layout CellConstraints TOP

List of usage examples for com.jgoodies.forms.layout CellConstraints TOP

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout CellConstraints TOP.

Prototype

Alignment TOP

To view the source code for com.jgoodies.forms.layout CellConstraints TOP.

Click Source Link

Document

Put the component in the top.

Usage

From source file:com.salas.bb.dialogs.DirectFeedPropertiesDialog.java

License:Open Source License

/**
 * Creates advanced tab./*from  w w w . j  ava2 s .  c  o  m*/
 *
 * @return advanced tab.
 */
private Component createAdvancedTab() {
    initialPurgeLimit = feed.getPurgeLimitCombined();
    tfPurgeLimit = new JTextField();
    setFormPurgeLimit(initialPurgeLimit);

    JLabel lbArticleCount = new JLabel(Integer.toString(feed.getArticlesCount()));
    JLabel lbRetrievals = new JLabel(String.valueOf(feed.getRetrievals()));
    JLabel lbLastUpdate = new JLabel(DateUtils.dateToString(new Date(feed.getLastPollTime())));
    JLabel lbFormat = new JLabel(feed.getFormat());

    BBFormBuilder builder = new BBFormBuilder("pref, 4dlu, max(pref;40px), 2dlu, pref:grow");
    builder.setDefaultDialogBorder();

    builder.append(Strings.message("show.feed.properties.tab.advanced.articles"), lbArticleCount, 3);
    builder.append(Strings.message("show.feed.properties.tab.advanced.retrievals"), lbRetrievals, 3);
    builder.append(Strings.message("show.feed.properties.tab.advanced.last.update"), lbLastUpdate, 3);
    builder.append(Strings.message("show.feed.properties.tab.advanced.format"), lbFormat, 3);
    builder.append(Strings.message("show.feed.properties.tab.advanced.purge.limit"), tfPurgeLimit);
    builder.nextLine();
    builder.append(Strings.message("show.feed.properties.tab.advanced.update.period"), 1, CellConstraints.LEFT,
            CellConstraints.TOP);
    builder.append(pnlFeedUpdatePeriod, 3);

    if (pnlFeedAutoSave != null) {
        builder.appendUnrelatedComponentsGapRow(2);
        builder.append(pnlFeedAutoSave, 5);
    }

    return builder.getPanel();
}

From source file:com.salas.bb.dialogs.guide.EditGuideDialog.java

License:Open Source License

/**
 * Builds general tab./* www  .j  a v a  2  s  . c  om*/
 *
 * @return tab.
 */
private JComponent buildGeneralTab() {
    BBFormBuilder builder = new BBFormBuilder("p, 4dlu, 30dlu, 7dlu, p:grow");
    builder.setDefaultDialogBorder();

    builder.append(Strings.message("guide.dialog.title"), tfTitle, 3);
    builder.append(Strings.message("edit.guide.general.position"), tfPosition, chAutoFeedsDiscovery);
    builder.appendRelatedComponentsGapRow(2);
    builder.appendRow("70dlu:grow");
    builder.append(Strings.message("edit.guide.general.icon"), 1, CellConstraints.FILL, CellConstraints.TOP)
            .setLabelFor(iconsList);
    builder.append(new JScrollPane(iconsList), 3, CellConstraints.FILL, CellConstraints.FILL);

    return builder.getPanel();
}

From source file:com.salas.bb.dialogs.SmartFeedDialog.java

License:Open Source License

/**
 * Creates basic configuration tab available both to free/basic and advanced users.
 *
 * @return tab./*from  www .j  a v  a 2s .  com*/
 */
public Component createBasicTab() {
    BBFormBuilder b = new BBFormBuilder(LABEL_COL_WIDTH + "dlu, 4dlu, 120dlu, 75dlu:grow");
    b.setDefaultDialogBorder();

    b.append(Strings.message("create.smartfeed.source"), cbService);
    b.setLeadingColumnOffset(2);
    b.appendRelatedComponentsGapRow(2);
    b.appendRow("40dlu");
    b.append(lbDescription, 2, CellConstraints.FILL, CellConstraints.TOP);

    b.setLeadingColumnOffset(0);
    b.appendUnrelatedComponentsGapRow(2);
    b.append(createTitlePanel(), 4);

    b.appendUnrelatedComponentsGapRow(2);
    b.append(pnlOptions, 4, CellConstraints.FILL, CellConstraints.FILL);

    return b.getPanel();
}

From source file:com.salas.bb.dialogs.SmartFeedDialog.java

License:Open Source License

/**
 * Creates advanced configuration tab available only to advanced users.
 *
 * @return panel./*from w w  w .  ja  v a  2  s.c  o m*/
 */
private Component createAdvancedTab() {
    BBFormBuilder builder = new BBFormBuilder("p, 2dlu, 30dlu, 2dlu, p, 2dlu, 30dlu, 0:grow");
    builder.setDefaultDialogBorder();

    if (GlobalController.SINGLETON.getFeatureManager().isSfDeduplication()) {
        builder.append(chDedupEnabled);
        builder.append(spnDedupFrom);
        builder.append(lbTo);
        builder.append(spnDedupTo);
        builder.nextLine();
    }

    if (feed instanceof DataFeed) {
        DataFeed dfeed = (DataFeed) feed;
        long initialUpdatePeriod = dfeed.getUpdatePeriod();

        pnlFeedUpdatePeriod = new FeedUpdatePeriodPanel(initialUpdatePeriod);

        builder.append(Strings.message("show.feed.properties.tab.advanced.update.period"), 1,
                CellConstraints.LEFT, CellConstraints.TOP);
        builder.append(pnlFeedUpdatePeriod, 6);
    }

    pnlFeedAutoSave = new FeedAutoSavePanel(feed,
            GlobalController.SINGLETON.getFeatureManager().isAutoSaving());
    builder.append(pnlFeedAutoSave, 8);

    return builder.getPanel();
}

From source file:com.spirit.contabilidad.gui.controller.PopupInfoAsiento.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    contentPane = new JPanel();
    label2 = new JLabel();
    goodiesFormsSeparator = compFactory.createSeparator("");
    panelForm = new JPanel();
    lblAsiento = new JLabel();
    lblNumero = new JLabel();
    txtNumero = new JTextField();
    lblTipoAsiento = new JLabel();
    txtTipoAsiento = new JTextField();
    lblSubTipoAsiento = new JLabel();
    txtSubTipoAsiento = new JTextField();
    label1 = new JLabel();
    txtObservaciones = new JTextField();
    btnIrAsiento = new JButton();
    panelForm2 = new JPanel();
    txtReferencia = new JTextField();
    txtGlosa = new JTextField();
    lblCuenta = new JLabel();
    lblReferencia = new JLabel();
    lblGlosa = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setResizable(false);/*from  www . j a va2  s . co  m*/
    setMovable(true);
    setLayout(new FormLayout("default:grow", "default, fill:default:grow"));

    //======== contentPane ========
    {
        contentPane.setLayout(new FormLayout("default:grow", "fill:pref, default, default, default, default"));

        //---- label2 ----
        label2.setText("Informaci\u00f3n");
        contentPane.add(label2, cc.xywh(1, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        contentPane.add(goodiesFormsSeparator,
                cc.xywh(1, 2, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

        //======== panelForm ========
        {
            panelForm.setBorder(Borders.DIALOG_BORDER);
            panelForm.setLayout(new FormLayout("default, 50dlu, 120dlu, default",
                    "default, default, default, default, default, fill:pref:grow"));

            //---- lblAsiento ----
            lblAsiento.setText("ASIENTO");
            lblAsiento.setFont(new Font("Microsoft Sans Serif", Font.BOLD, 11));
            panelForm.add(lblAsiento, cc.xy(2, 1));

            //---- lblNumero ----
            lblNumero.setText("N\u00famero:");
            panelForm.add(lblNumero, cc.xywh(2, 2, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelForm.add(txtNumero, cc.xy(3, 2));

            //---- lblTipoAsiento ----
            lblTipoAsiento.setText("Tipo Asiento:");
            panelForm.add(lblTipoAsiento, cc.xywh(2, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelForm.add(txtTipoAsiento, cc.xy(3, 3));

            //---- lblSubTipoAsiento ----
            lblSubTipoAsiento.setText("Sub-Tipo Asiento:");
            panelForm.add(lblSubTipoAsiento,
                    cc.xywh(2, 4, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelForm.add(txtSubTipoAsiento, cc.xy(3, 4));

            //---- label1 ----
            label1.setText("Observaciones:");
            panelForm.add(label1, cc.xywh(2, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelForm.add(txtObservaciones, cc.xy(3, 5));

            //---- btnIrAsiento ----
            btnIrAsiento.setText("Ir");
            panelForm.add(btnIrAsiento, cc.xywh(3, 6, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        contentPane.add(panelForm, cc.xy(1, 3));

        //======== panelForm2 ========
        {
            panelForm2.setBorder(Borders.DIALOG_BORDER);
            panelForm2.setLayout(new FormLayout("default, 50dlu, 120dlu, default",
                    "default, default, default, fill:pref:grow"));
            panelForm2.add(txtReferencia, cc.xy(3, 2));
            panelForm2.add(txtGlosa, cc.xy(3, 3));

            //---- lblCuenta ----
            lblCuenta.setText("CUENTA");
            lblCuenta.setFont(new Font("Microsoft Sans Serif", Font.BOLD, 11));
            panelForm2.add(lblCuenta, cc.xy(2, 1));

            //---- lblReferencia ----
            lblReferencia.setText("Referencia:");
            panelForm2.add(lblReferencia, cc.xy(2, 2));

            //---- lblGlosa ----
            lblGlosa.setText("Glosa:");
            panelForm2.add(lblGlosa, cc.xy(2, 3));
        }
        contentPane.add(panelForm2, cc.xy(1, 5));
    }
    add(contentPane, cc.xy(1, 2));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.spirit.medios.gui.panel.JPPresupuesto.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    jtpPresupuesto = new JideTabbedPane();
    spGeneral = new JScrollPane();
    panelPresupuesto = new JPanel();
    txtCodigo = new JTextField();
    lblcodigo = new JLabel();
    lblEstado = new JLabel();
    cmbEstado = new JComboBox();
    lblConceptoPresupuesto = new JLabel();
    txtConceptoPresupuesto = new JTextField();
    lblCorporacion = new JLabel();
    txtCorporacion = new JTextField();
    btnBuscarCorporacion = new JButton();
    cbSinIVA = new JCheckBox();
    lblCliente = new JLabel();
    txtCliente = new JTextField();
    btnBuscarCliente = new JButton();
    cbPrepago = new JCheckBox();
    lblClienteOficina = new JLabel();
    txtOficina = new JTextField();
    btnBuscarOficina = new JButton();
    lblFechaCreacion = new JLabel();
    cmbFechaCreacion = new DateComboBox();
    lblReferencia = new JLabel();
    cmbTipoReferencia = new JComboBox();
    txtReferencia = new JTextField();
    btnReferencia = new JButton();
    btnLimpiarReferencia = new JButton();
    lblFechaPresupuesto = new JLabel();
    cmbFechaPresupuesto = new DateComboBox();
    lblTipoOrden = new JLabel();
    cmbTipoOrden = new JComboBox();
    lblFechaAprobacion = new JLabel();
    cmbFechaAprobacion = new DateComboBox();
    lblOrdenTrabajo = new JLabel();
    cmbOrdenTrabajo = new JComboBox();
    cmbOrdenTrabajoDetalle = new JComboBox();
    lblOrdenTrabajoDetId = new JLabel();
    txtSubTipoOrden = new JTextField();
    lblModificacion = new JLabel();
    txtModificacion = new JTextField();
    lblTemaCampana = new JLabel();
    txtTemaCampana = new JTextField();
    lblContadorPresupuestos = new JLabel();
    txtContadorPresupuestos = new JTextField();
    lblDiasValidez = new JLabel();
    txtDiasValidez = new JTextField();
    lblAutorizacionSAP = new JLabel();
    txtAutorizacionSAP = new JTextField();
    lblFormaPago = new JLabel();
    cmbFormaPago = new JComboBox();
    spTxtDescripcionOTdetalle = new JScrollPane();
    txtDescripcionOTdetalle = new JTextArea();
    lblCabecera = new JLabel();
    scrollPane1 = new JScrollPane();
    txtCabecera = new JTextArea();
    panelProductoCliente = new JPanel();
    btnSeleccionarTodo = new JButton();
    btnDeseleccionarTodo = new JButton();
    spCbListProductos = new JScrollPane();
    cbListProductos = new CheckBoxList();
    spPresupuestoDetalle = new JScrollPane();
    panelPresupuestoDetalle = new JPanel();
    lblProveedorId = new JLabel();
    txtProveedor = new JTextField();
    btnBuscarProveedor = new JButton();
    cbNegociacionDirecta = new JCheckBox();
    lblPorcentajeNegociacionDirecta = new JLabel();
    txtPorcentajeNegociacionDirecta = new JTextField();
    lblProducto = new JLabel();
    txtProducto = new JTextField();
    btnBuscarProducto = new JButton();
    cbComisionPura = new JCheckBox();
    lblPorcentajeComisionPura = new JLabel();
    txtPorcentajeComisionPura = new JTextField();
    cbComisionAdicional = new JCheckBox();
    lblPorcentajeComisionAdicional = new JLabel();
    txtPorcentajeComisionAdicional = new JTextField();
    lblConceptoPresupuestoDetalle = new JLabel();
    spConceptoPresupuestoDetalle = new JScrollPane();
    txtConceptoPresupuestoDetalle = new JTextArea();
    lblOrden = new JLabel();
    txtOrden = new JTextField();
    lblFechaPublicacion = new JLabel();
    cmbFechaPublicacion = new DateComboBox();
    lblCompra = new JLabel();
    lblVenta = new JLabel();
    lblPrecioCompra = new JLabel();
    txtPrecioCompra = new JTextField();
    lblPorcentajeDescuentoEspecialCompra = new JLabel();
    txtPorcentajeDescuentoEspecialCompra = new JTextField();
    lblPorcentajeDescuentoEspecialVenta = new JLabel();
    txtPorcentajeDescuentoEspecialVenta = new JTextField();
    lblPrecioVenta = new JLabel();
    txtPrecioVenta = new JTextField();
    lblPorcentajeDsctoAgenciaCompra = new JLabel();
    txtPorcentajeDsctoAgenciaCompra = new JTextField();
    lblPorcentajeDsctoAgenciaVenta = new JLabel();
    txtPorcentajeDsctoAgenciaVenta = new JTextField();
    lblCantidad = new JLabel();
    txtCantidad = new JTextField();
    lblPorcentajeDescuentosVariosCompra = new JLabel();
    txtPorcentajeDescuentosVariosCompra = new JTextField();
    lblPorcentajeDescuentosVariosVenta = new JLabel();
    txtPorcentajeDescuentosVariosVenta = new JTextField();
    lblPorcentajeNotaCredito = new JLabel();
    txtPorcentajeNotaCredito = new JTextField();
    panel1 = new JPanel();
    btnAgregarDetalle = new JButton();
    btnActualizarDetalle = new JButton();
    btnEliminarDetalle = new JButton();
    btnReorganizarTabla = new JButton();
    scPresupuestoDetalle = new JScrollPane();
    tblPresupuestoDetalle = new JTable();
    lblSubTotalCompra = new JLabel();
    txtSubTotalCompra = new JTextField();
    lblSubTotalVenta = new JLabel();
    txtSubTotalVenta = new JTextField();
    lblDescuentoEspecialTotalCompra = new JLabel();
    txtDescuentoEspecialTotalCompra = new JTextField();
    lblDescuentoEspecialTotalVenta = new JLabel();
    txtDescuentoEspecialTotalVenta = new JTextField();
    lblSubTotal2Compra = new JLabel();
    txtSubTotal2Compra = new JTextField();
    lblSubTotal2Venta = new JLabel();
    txtSubTotal2Venta = new JTextField();
    lblDsctoAgenciaCompra = new JLabel();
    txtDsctoAgenciaCompra = new JTextField();
    lblDsctoAgenciaVenta = new JLabel();
    txtDsctoAgenciaVenta = new JTextField();
    lblDescuentosVariosCompra = new JLabel();
    txtDescuentosVariosCompra = new JTextField();
    lblDescuentosVariosVenta = new JLabel();
    txtDescuentosVariosVenta = new JTextField();
    lblIvaTotalCompra = new JLabel();
    txtIvaTotalCompra = new JTextField();
    lblComisionAgencia = new JLabel();
    txtPorcentajeComision = new JTextField();
    lblValorComision = new JLabel();
    txtValorComision = new JTextField();
    lblTotalCompra = new JLabel();
    txtTotalCompra = new JTextField();
    lblTotalVenta = new JLabel();
    lblIvaVenta = new JLabel();
    txtIvaVenta = new JTextField();
    txtTotalVenta = new JTextField();
    spPresupuestoProveedor = new JScrollPane();
    panelPresupuestoProveedor = new JPanel();
    lblProveedorP = new JLabel();
    txtProveedorP = new JTextField();
    lblProductoP = new JLabel();
    txtProductoP = new JTextField();
    lblConceptoPresupuestoDetalleP = new JLabel();
    spConceptoPresupuestoDetalleP = new JScrollPane();
    txtConceptoPresupuestoDetalleP = new JTextArea();
    lblPrecioVentaP = new JLabel();
    txtPrecioVentaP = new JTextField();
    txtCantidadP = new JTextField();
    lblCantidadP = new JLabel();
    panel13 = new JPanel();
    btnAgregarDetalleP = new JButton();
    btnActualizarDetalleP = new JButton();
    btnEliminarDetalleP = new JButton();
    scPresupuestoDetalleP = new JScrollPane();
    tblPresupuestoDetalleP = new JTable();
    lblTotalReporte = new JLabel();
    txtTotalReporte = new JTextField();
    panelArchivos = new JPanel();
    lblTipoArchivo = new JLabel();
    cmbTipoArchivo = new JComboBox();
    lblArchivo = new JLabel();
    txtArchivo = new JTextField();
    btnBuscarArchivo = new JButton();
    panel4 = new JPanel();
    btnAgregarArchivo = new JButton();
    btnActualizarArchivo = new JButton();
    btnEliminarArchivo = new JButton();
    btnVerArchivo = new JButton();
    spTblArchivos = new JScrollPane();
    tblArchivo = new JTable();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setName("Presupuestos");
    setLayout(new FormLayout("default:grow", "default"));

    //======== jtpPresupuesto ========
    {/* w  w  w . ja va2s.  c  o  m*/

        //======== spGeneral ========
        {

            //======== panelPresupuesto ========
            {
                panelPresupuesto.setForeground(Color.black);
                panelPresupuesto.setLayout(new FormLayout(new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(50)),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("min(default;100dlu):grow"),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(95)),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(35)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.dluY(38), FormSpec.NO_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));
                panelPresupuesto.add(txtCodigo,
                        cc.xywh(5, 3, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- lblcodigo ----
                lblcodigo.setText("C\u00f3digo:");
                panelPresupuesto.add(lblcodigo,
                        cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- lblEstado ----
                lblEstado.setText("Estado:");
                panelPresupuesto.add(lblEstado,
                        cc.xywh(17, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(cmbEstado,
                        cc.xywh(19, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- lblConceptoPresupuesto ----
                lblConceptoPresupuesto.setText("Concepto:");
                panelPresupuesto.add(lblConceptoPresupuesto,
                        cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(txtConceptoPresupuesto, cc.xywh(5, 5, 7, 1));

                //---- lblCorporacion ----
                lblCorporacion.setText("Corporaci\u00f3n:");
                panelPresupuesto.add(lblCorporacion,
                        cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
                panelPresupuesto.add(txtCorporacion,
                        cc.xywh(5, 7, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
                panelPresupuesto.add(btnBuscarCorporacion,
                        cc.xywh(13, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- cbSinIVA ----
                cbSinIVA.setText("Sin IVA");
                panelPresupuesto.add(cbSinIVA, cc.xy(19, 7));

                //---- lblCliente ----
                lblCliente.setText("Cliente:");
                panelPresupuesto.add(lblCliente,
                        cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(txtCliente,
                        cc.xywh(5, 9, 7, 1, CellConstraints.FILL, CellConstraints.FILL));
                panelPresupuesto.add(btnBuscarCliente,
                        cc.xywh(13, 9, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- cbPrepago ----
                cbPrepago.setText("Prepago");
                panelPresupuesto.add(cbPrepago, cc.xy(19, 9));

                //---- lblClienteOficina ----
                lblClienteOficina.setText("Oficina del Cliente:");
                panelPresupuesto.add(lblClienteOficina,
                        cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(txtOficina,
                        cc.xywh(5, 11, 7, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
                panelPresupuesto.add(btnBuscarOficina,
                        cc.xywh(13, 11, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- lblFechaCreacion ----
                lblFechaCreacion.setText("F. de Creaci\u00f3n:");
                panelPresupuesto.add(lblFechaCreacion,
                        cc.xywh(17, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- cmbFechaCreacion ----
                cmbFechaCreacion.setEditable(false);
                cmbFechaCreacion.setShowNoneButton(false);
                panelPresupuesto.add(cmbFechaCreacion, cc.xy(19, 11));

                //---- lblTipoOrden ----
                lblTipoOrden.setText("Tipo de Orden:");
                panelPresupuesto.add(lblTipoOrden,
                        cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
                panelPresupuesto.add(cmbTipoOrden,
                        cc.xywh(5, 13, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- lblFechaPresupuesto ----
                lblFechaPresupuesto.setText("F. de Presupuesto:");
                panelPresupuesto.add(lblFechaPresupuesto,
                        cc.xywh(17, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- cmbFechaPresupuesto ----
                cmbFechaPresupuesto.setShowNoneButton(false);
                cmbFechaPresupuesto.setEditable(false);
                panelPresupuesto.add(cmbFechaPresupuesto, cc.xy(19, 13));

                //---- lblOrdenTrabajo ----
                lblOrdenTrabajo.setText("Orden de Trabajo:");
                panelPresupuesto.add(lblOrdenTrabajo,
                        cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(cmbOrdenTrabajo, cc.xywh(5, 15, 7, 1));

                //---- lblFechaAprobacion ----
                lblFechaAprobacion.setText("F. de Aprobaci\u00f3n:");
                panelPresupuesto.add(lblFechaAprobacion,
                        cc.xywh(17, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- cmbFechaAprobacion ----
                cmbFechaAprobacion.setEditable(false);
                cmbFechaAprobacion.setShowNoneButton(false);
                panelPresupuesto.add(cmbFechaAprobacion, cc.xy(19, 15));
                panelPresupuesto.add(cmbOrdenTrabajoDetalle,
                        cc.xywh(5, 17, 7, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- lblOrdenTrabajoDetId ----
                lblOrdenTrabajoDetId.setText("Detalle Orden de Trabajo:");
                panelPresupuesto.add(lblOrdenTrabajoDetId,
                        cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(txtSubTipoOrden, cc.xy(13, 17));

                //---- lblModificacion ----
                lblModificacion.setText("Modificado:");
                panelPresupuesto.add(lblModificacion,
                        cc.xywh(17, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
                panelPresupuesto.add(txtModificacion,
                        cc.xywh(19, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- lblTemaCampana ----
                lblTemaCampana.setText("Tema:");
                panelPresupuesto.add(lblTemaCampana,
                        cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(txtTemaCampana, cc.xywh(5, 19, 7, 1));

                //---- lblContadorPresupuestos ----
                lblContadorPresupuestos.setText("Presupuestos:");
                panelPresupuesto.add(lblContadorPresupuestos,
                        cc.xywh(17, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtContadorPresupuestos ----
                txtContadorPresupuestos.setEditable(false);
                panelPresupuesto.add(txtContadorPresupuestos, cc.xy(19, 19));

                //---- lblReferencia ----
                lblReferencia.setText("Referencia:");
                panelPresupuesto.add(lblReferencia,
                        cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- cmbTipoReferencia ----
                cmbTipoReferencia.setModel(
                        new DefaultComboBoxModel(new String[] { "NINGUNO", "PRESUPUESTO", "PLAN DE MEDIOS" }));
                panelPresupuesto.add(cmbTipoReferencia, cc.xy(5, 21));

                //---- txtReferencia ----
                txtReferencia.setEditable(false);
                panelPresupuesto.add(txtReferencia, cc.xy(7, 21));
                panelPresupuesto.add(btnReferencia,
                        cc.xywh(9, 21, 1, 1, CellConstraints.LEFT, CellConstraints.FILL));
                panelPresupuesto.add(btnLimpiarReferencia,
                        cc.xywh(11, 21, 1, 1, CellConstraints.LEFT, CellConstraints.FILL));

                //---- lblAutorizacionSAP ----
                lblAutorizacionSAP.setText("SAP:");
                panelPresupuesto.add(lblAutorizacionSAP,
                        cc.xywh(17, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtAutorizacionSAP ----
                txtAutorizacionSAP.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuesto.add(txtAutorizacionSAP, cc.xy(19, 21));

                //---- lblDiasValidez ----
                lblDiasValidez.setText("D\u00edas de validez:");
                panelPresupuesto.add(lblDiasValidez,
                        cc.xywh(3, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDiasValidez ----
                txtDiasValidez.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuesto.add(txtDiasValidez, cc.xy(5, 23));

                //---- lblFormaPago ----
                lblFormaPago.setText("Forma de Pago:");
                panelPresupuesto.add(lblFormaPago,
                        cc.xywh(3, 25, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuesto.add(cmbFormaPago, cc.xy(5, 25));

                //======== spTxtDescripcionOTdetalle ========
                {

                    //---- txtDescripcionOTdetalle ----
                    txtDescripcionOTdetalle.setLineWrap(true);
                    spTxtDescripcionOTdetalle.setViewportView(txtDescripcionOTdetalle);
                }
                panelPresupuesto.add(spTxtDescripcionOTdetalle, cc.xywh(7, 25, 13, 3));

                //---- lblCabecera ----
                lblCabecera.setText("Observaci\u00f3n:");
                panelPresupuesto.add(lblCabecera,
                        cc.xywh(3, 29, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //======== scrollPane1 ========
                {

                    //---- txtCabecera ----
                    txtCabecera.setLineWrap(true);
                    scrollPane1.setViewportView(txtCabecera);
                }
                panelPresupuesto.add(scrollPane1, cc.xywh(3, 31, 17, 1));
            }
            spGeneral.setViewportView(panelPresupuesto);
        }
        jtpPresupuesto.addTab("General", spGeneral);

        //======== panelProductoCliente ========
        {
            panelProductoCliente.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.dluY(80), FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) }));

            //---- btnSeleccionarTodo ----
            btnSeleccionarTodo.setText("Seleccionar todo");
            panelProductoCliente.add(btnSeleccionarTodo, cc.xy(7, 3));

            //---- btnDeseleccionarTodo ----
            btnDeseleccionarTodo.setText("Deseleccionar todo");
            panelProductoCliente.add(btnDeseleccionarTodo, cc.xy(7, 5));

            //======== spCbListProductos ========
            {
                spCbListProductos.setViewportView(cbListProductos);
            }
            panelProductoCliente.add(spCbListProductos, cc.xywh(3, 3, 3, 7));
        }
        jtpPresupuesto.addTab("Productos", panelProductoCliente);

        //======== spPresupuestoDetalle ========
        {

            //======== panelPresupuestoDetalle ========
            {
                panelPresupuestoDetalle.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX9),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(70)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.TOP, Sizes.dluY(12), FormSpec.NO_GROW),
                                new RowSpec(Sizes.DLUY6), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW),
                                new RowSpec(RowSpec.TOP, Sizes.dluY(10), FormSpec.NO_GROW),
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.dluY(10), FormSpec.NO_GROW) }));

                //---- lblProveedorId ----
                lblProveedorId.setText("Proveedor:");
                panelPresupuestoDetalle.add(lblProveedorId,
                        cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuestoDetalle.add(txtProveedor, cc.xywh(5, 3, 7, 1));
                panelPresupuestoDetalle.add(btnBuscarProveedor,
                        cc.xywh(13, 3, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- cbNegociacionDirecta ----
                cbNegociacionDirecta.setText("Facturaci\u00f3n Directa");
                panelPresupuestoDetalle.add(cbNegociacionDirecta,
                        cc.xywh(19, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- lblPorcentajeNegociacionDirecta ----
                lblPorcentajeNegociacionDirecta.setText("[%]:");
                panelPresupuestoDetalle.add(lblPorcentajeNegociacionDirecta,
                        cc.xywh(23, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeNegociacionDirecta ----
                txtPorcentajeNegociacionDirecta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeNegociacionDirecta, cc.xy(25, 3));

                //---- lblProducto ----
                lblProducto.setText("Producto:");
                panelPresupuestoDetalle.add(lblProducto,
                        cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
                panelPresupuestoDetalle.add(txtProducto,
                        cc.xywh(5, 5, 7, 1, CellConstraints.FILL, CellConstraints.FILL));
                panelPresupuestoDetalle.add(btnBuscarProducto,
                        cc.xywh(13, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- cbComisionPura ----
                cbComisionPura.setText("Comisi\u00f3n Directa");
                panelPresupuestoDetalle.add(cbComisionPura,
                        cc.xywh(19, 5, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- lblPorcentajeComisionPura ----
                lblPorcentajeComisionPura.setText("[%]:");
                panelPresupuestoDetalle.add(lblPorcentajeComisionPura,
                        cc.xywh(23, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeComisionPura ----
                txtPorcentajeComisionPura.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeComisionPura, cc.xy(25, 5));

                //---- cbComisionAdicional ----
                cbComisionAdicional.setText("Comisi\u00f3n Adicional");
                panelPresupuestoDetalle.add(cbComisionAdicional, cc.xy(29, 5));

                //---- lblPorcentajeComisionAdicional ----
                lblPorcentajeComisionAdicional.setText("[%]:");
                panelPresupuestoDetalle.add(lblPorcentajeComisionAdicional, cc.xy(31, 5));

                //---- txtPorcentajeComisionAdicional ----
                txtPorcentajeComisionAdicional.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeComisionAdicional, cc.xy(33, 5));

                //---- lblConceptoPresupuestoDetalle ----
                lblConceptoPresupuestoDetalle.setText("Concepto:");
                panelPresupuestoDetalle.add(lblConceptoPresupuestoDetalle,
                        cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //======== spConceptoPresupuestoDetalle ========
                {

                    //---- txtConceptoPresupuestoDetalle ----
                    txtConceptoPresupuestoDetalle.setWrapStyleWord(false);
                    txtConceptoPresupuestoDetalle.setRows(6);
                    txtConceptoPresupuestoDetalle.setLineWrap(true);
                    txtConceptoPresupuestoDetalle.setEditable(false);
                    spConceptoPresupuestoDetalle.setViewportView(txtConceptoPresupuestoDetalle);
                }
                panelPresupuestoDetalle.add(spConceptoPresupuestoDetalle, cc.xywh(5, 7, 34, 5));

                //---- lblOrden ----
                lblOrden.setText("Orden:");
                panelPresupuestoDetalle.add(lblOrden,
                        cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                panelPresupuestoDetalle.add(txtOrden, cc.xy(5, 13));

                //---- lblFechaPublicacion ----
                lblFechaPublicacion.setText("Fecha de Publicaci\u00f3n:");
                panelPresupuestoDetalle.add(lblFechaPublicacion,
                        cc.xywh(21, 13, 7, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- cmbFechaPublicacion ----
                cmbFechaPublicacion.setEditable(false);
                panelPresupuestoDetalle.add(cmbFechaPublicacion, cc.xywh(29, 13, 4, 1));

                //---- lblCompra ----
                lblCompra.setText("Compra - Proveedor:");
                lblCompra.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblCompra, cc.xywh(11, 15, 3, 1));

                //---- lblVenta ----
                lblVenta.setText("Venta - Cliente:");
                lblVenta.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblVenta, cc.xy(19, 15));

                //---- lblPrecioCompra ----
                lblPrecioCompra.setText("Precio de compra:");
                panelPresupuestoDetalle.add(lblPrecioCompra,
                        cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtPrecioCompra ----
                txtPrecioCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPrecioCompra, cc.xywh(5, 17, 3, 1));

                //---- lblPorcentajeDescuentoEspecialCompra ----
                lblPorcentajeDescuentoEspecialCompra.setText("Dscto. Especial [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDescuentoEspecialCompra,
                        cc.xywh(11, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeDescuentoEspecialCompra ----
                txtPorcentajeDescuentoEspecialCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDescuentoEspecialCompra, cc.xywh(13, 17, 3, 1));

                //---- lblPorcentajeDescuentoEspecialVenta ----
                lblPorcentajeDescuentoEspecialVenta.setText("Dscto. Especial [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDescuentoEspecialVenta,
                        cc.xywh(19, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeDescuentoEspecialVenta ----
                txtPorcentajeDescuentoEspecialVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDescuentoEspecialVenta, cc.xywh(21, 17, 5, 1));

                //---- lblPrecioVenta ----
                lblPrecioVenta.setText("Precio de venta:");
                panelPresupuestoDetalle.add(lblPrecioVenta,
                        cc.xywh(3, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtPrecioVenta ----
                txtPrecioVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPrecioVenta, cc.xywh(5, 19, 3, 1));

                //---- lblPorcentajeDsctoAgenciaCompra ----
                lblPorcentajeDsctoAgenciaCompra.setText("Dscto. Agencia [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDsctoAgenciaCompra,
                        cc.xywh(11, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeDsctoAgenciaCompra ----
                txtPorcentajeDsctoAgenciaCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDsctoAgenciaCompra, cc.xywh(13, 19, 3, 1));

                //---- lblPorcentajeDsctoAgenciaVenta ----
                lblPorcentajeDsctoAgenciaVenta.setText("Dscto. Agencia [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDsctoAgenciaVenta,
                        cc.xywh(19, 19, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtPorcentajeDsctoAgenciaVenta ----
                txtPorcentajeDsctoAgenciaVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDsctoAgenciaVenta, cc.xywh(21, 19, 5, 1));

                //---- lblCantidad ----
                lblCantidad.setText("Cantidad:");
                panelPresupuestoDetalle.add(lblCantidad,
                        cc.xywh(3, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtCantidad ----
                txtCantidad.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtCantidad, cc.xy(5, 21));

                //---- lblPorcentajeDescuentosVariosCompra ----
                lblPorcentajeDescuentosVariosCompra.setText("Dsctos. Varios [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDescuentosVariosCompra,
                        cc.xywh(11, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeDescuentosVariosCompra ----
                txtPorcentajeDescuentosVariosCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDescuentosVariosCompra, cc.xywh(13, 21, 3, 1));

                //---- lblPorcentajeDescuentosVariosVenta ----
                lblPorcentajeDescuentosVariosVenta.setText("Dsctos. Varios [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeDescuentosVariosVenta,
                        cc.xywh(19, 21, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeDescuentosVariosVenta ----
                txtPorcentajeDescuentosVariosVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeDescuentosVariosVenta, cc.xywh(21, 21, 5, 1));

                //---- lblPorcentajeNotaCredito ----
                lblPorcentajeNotaCredito.setText("Nota de Cr\u00e9dito [%]:");
                panelPresupuestoDetalle.add(lblPorcentajeNotaCredito, cc.xy(11, 23));

                //---- txtPorcentajeNotaCredito ----
                txtPorcentajeNotaCredito.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeNotaCredito, cc.xywh(13, 23, 3, 1));

                //======== panel1 ========
                {
                    panel1.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- btnAgregarDetalle ----
                    btnAgregarDetalle.setText("A");
                    panel1.add(btnAgregarDetalle, cc.xy(1, 1));

                    //---- btnActualizarDetalle ----
                    btnActualizarDetalle.setText("U");
                    panel1.add(btnActualizarDetalle, cc.xy(3, 1));

                    //---- btnEliminarDetalle ----
                    btnEliminarDetalle.setText("D");
                    panel1.add(btnEliminarDetalle, cc.xy(5, 1));
                }
                panelPresupuestoDetalle.add(panel1, cc.xywh(3, 26, 3, 1));

                //---- btnReorganizarTabla ----
                btnReorganizarTabla.setText("Reorganizar Tabla");
                panelPresupuestoDetalle.add(btnReorganizarTabla, cc.xywh(11, 26, 3, 1));

                //======== scPresupuestoDetalle ========
                {

                    //---- tblPresupuestoDetalle ----
                    tblPresupuestoDetalle.setModel(new DefaultTableModel(
                            new Object[][] { { null, null, null, null, null, null, null, null, null, null, null,
                                    null, "", null, null, null, null }, },
                            new String[] { " ", "Concepto", "Cant.", "Precio Compra", "Precio Venta",
                                    "Dscto. Venta", "Dscto. Compra", "Orden", "Orden Compra", "% F.D.",
                                    "% C.D.", "% D.V.C.", "% D.E.C.", "% D.V.V.", "% D.E.V.", "% C.A.",
                                    "F. Publicaci\u00f3n" }) {
                        Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class,
                                Object.class, Object.class, Object.class, Object.class, Integer.class,
                                Object.class, Object.class, Object.class, Object.class, Object.class,
                                Object.class, Object.class, Object.class, Object.class };
                        boolean[] columnEditable = new boolean[] { true, false, false, false, false, false,
                                false, false, false, false, false, false, false, false, false, false, false };

                        @Override
                        public Class<?> getColumnClass(int columnIndex) {
                            return columnTypes[columnIndex];
                        }

                        @Override
                        public boolean isCellEditable(int rowIndex, int columnIndex) {
                            return columnEditable[columnIndex];
                        }
                    });
                    tblPresupuestoDetalle.setPreferredScrollableViewportSize(new Dimension(450, 150));
                    tblPresupuestoDetalle.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
                    scPresupuestoDetalle.setViewportView(tblPresupuestoDetalle);
                }
                panelPresupuestoDetalle.add(scPresupuestoDetalle,
                        cc.xywh(3, 28, 36, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- lblSubTotalCompra ----
                lblSubTotalCompra.setText("SubTotal Compra:");
                lblSubTotalCompra.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblSubTotalCompra,
                        cc.xywh(3, 32, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtSubTotalCompra ----
                txtSubTotalCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                txtSubTotalCompra.setEditable(false);
                panelPresupuestoDetalle.add(txtSubTotalCompra, cc.xywh(5, 32, 3, 1));

                //---- lblSubTotalVenta ----
                lblSubTotalVenta.setText("SubTotal Venta:");
                lblSubTotalVenta.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblSubTotalVenta,
                        cc.xywh(11, 32, 3, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtSubTotalVenta ----
                txtSubTotalVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                txtSubTotalVenta.setEditable(false);
                panelPresupuestoDetalle.add(txtSubTotalVenta, cc.xywh(15, 32, 5, 1));

                //---- lblDescuentoEspecialTotalCompra ----
                lblDescuentoEspecialTotalCompra.setText("Dscto. Especial:");
                panelPresupuestoDetalle.add(lblDescuentoEspecialTotalCompra,
                        cc.xywh(3, 34, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDescuentoEspecialTotalCompra ----
                txtDescuentoEspecialTotalCompra.setEditable(false);
                txtDescuentoEspecialTotalCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtDescuentoEspecialTotalCompra, cc.xywh(5, 34, 3, 1));

                //---- lblDescuentoEspecialTotalVenta ----
                lblDescuentoEspecialTotalVenta.setText("Dscto. Especial:");
                panelPresupuestoDetalle.add(lblDescuentoEspecialTotalVenta,
                        cc.xywh(11, 34, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDescuentoEspecialTotalVenta ----
                txtDescuentoEspecialTotalVenta.setEditable(false);
                txtDescuentoEspecialTotalVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtDescuentoEspecialTotalVenta, cc.xywh(15, 34, 5, 1));

                //---- lblSubTotal2Compra ----
                lblSubTotal2Compra.setText("SubTotal 2:");
                lblSubTotal2Compra.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblSubTotal2Compra,
                        cc.xywh(3, 36, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtSubTotal2Compra ----
                txtSubTotal2Compra.setEditable(false);
                txtSubTotal2Compra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtSubTotal2Compra, cc.xywh(5, 36, 3, 1));

                //---- lblSubTotal2Venta ----
                lblSubTotal2Venta.setText("SubTotal 2:");
                lblSubTotal2Venta.setFont(new Font("Tahoma", Font.BOLD, 11));
                lblSubTotal2Venta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(lblSubTotal2Venta,
                        cc.xywh(11, 36, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtSubTotal2Venta ----
                txtSubTotal2Venta.setEditable(false);
                txtSubTotal2Venta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtSubTotal2Venta, cc.xywh(15, 36, 5, 1));

                //---- lblDsctoAgenciaCompra ----
                lblDsctoAgenciaCompra.setText("Dscto. Agencia:");
                panelPresupuestoDetalle.add(lblDsctoAgenciaCompra,
                        cc.xywh(3, 38, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDsctoAgenciaCompra ----
                txtDsctoAgenciaCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                txtDsctoAgenciaCompra.setEditable(false);
                panelPresupuestoDetalle.add(txtDsctoAgenciaCompra, cc.xywh(5, 38, 3, 1));

                //---- lblDsctoAgenciaVenta ----
                lblDsctoAgenciaVenta.setText("Dscto. Agencia:");
                panelPresupuestoDetalle.add(lblDsctoAgenciaVenta,
                        cc.xywh(11, 38, 3, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtDsctoAgenciaVenta ----
                txtDsctoAgenciaVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                txtDsctoAgenciaVenta.setEditable(false);
                panelPresupuestoDetalle.add(txtDsctoAgenciaVenta, cc.xywh(15, 38, 5, 1));

                //---- lblDescuentosVariosCompra ----
                lblDescuentosVariosCompra.setText("Dsctos. Varios:");
                panelPresupuestoDetalle.add(lblDescuentosVariosCompra,
                        cc.xywh(3, 40, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDescuentosVariosCompra ----
                txtDescuentosVariosCompra.setEditable(false);
                txtDescuentosVariosCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtDescuentosVariosCompra, cc.xywh(5, 40, 3, 1));

                //---- lblDescuentosVariosVenta ----
                lblDescuentosVariosVenta.setText("Dsctos. Varios:");
                panelPresupuestoDetalle.add(lblDescuentosVariosVenta,
                        cc.xywh(11, 40, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtDescuentosVariosVenta ----
                txtDescuentosVariosVenta.setEditable(false);
                txtDescuentosVariosVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtDescuentosVariosVenta, cc.xywh(15, 40, 5, 1));

                //---- lblIvaTotalCompra ----
                lblIvaTotalCompra.setText("IVA Compra:");
                panelPresupuestoDetalle.add(lblIvaTotalCompra,
                        cc.xywh(3, 42, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtIvaTotalCompra ----
                txtIvaTotalCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                txtIvaTotalCompra.setEditable(false);
                panelPresupuestoDetalle.add(txtIvaTotalCompra, cc.xywh(5, 42, 3, 1));

                //---- lblComisionAgencia ----
                lblComisionAgencia.setText("Comisi\u00f3n Agencia [%]:");
                panelPresupuestoDetalle.add(lblComisionAgencia,
                        cc.xywh(11, 42, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtPorcentajeComision ----
                txtPorcentajeComision.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtPorcentajeComision, cc.xy(15, 42));

                //---- lblValorComision ----
                lblValorComision.setText("[$]:");
                panelPresupuestoDetalle.add(lblValorComision, cc.xy(17, 42));

                //---- txtValorComision ----
                txtValorComision.setEditable(false);
                txtValorComision.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoDetalle.add(txtValorComision, cc.xy(19, 42));

                //---- lblTotalCompra ----
                lblTotalCompra.setText("Total Compra:");
                lblTotalCompra.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblTotalCompra,
                        cc.xywh(3, 44, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtTotalCompra ----
                txtTotalCompra.setFont(new Font("Microsoft Sans Serif", Font.BOLD, 11));
                txtTotalCompra.setHorizontalAlignment(SwingConstants.RIGHT);
                txtTotalCompra.setEditable(false);
                panelPresupuestoDetalle.add(txtTotalCompra, cc.xywh(5, 44, 3, 1));

                //---- lblTotalVenta ----
                lblTotalVenta.setText("Total Venta:");
                lblTotalVenta.setFont(new Font("Tahoma", Font.BOLD, 11));
                panelPresupuestoDetalle.add(lblTotalVenta,
                        cc.xywh(11, 46, 3, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- lblIvaVenta ----
                lblIvaVenta.setText("IVA Venta:");
                panelPresupuestoDetalle.add(lblIvaVenta,
                        cc.xywh(11, 44, 3, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtIvaVenta ----
                txtIvaVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                txtIvaVenta.setEditable(false);
                panelPresupuestoDetalle.add(txtIvaVenta, cc.xywh(15, 44, 5, 1));

                //---- txtTotalVenta ----
                txtTotalVenta.setHorizontalAlignment(SwingConstants.RIGHT);
                txtTotalVenta.setFont(new Font("Microsoft Sans Serif", Font.BOLD, 11));
                txtTotalVenta.setEditable(false);
                panelPresupuestoDetalle.add(txtTotalVenta, cc.xywh(15, 46, 5, 1));
            }
            spPresupuestoDetalle.setViewportView(panelPresupuestoDetalle);
        }
        jtpPresupuesto.addTab("Detalle", spPresupuestoDetalle);

        //======== spPresupuestoProveedor ========
        {

            //======== panelPresupuestoProveedor ========
            {
                panelPresupuestoProveedor.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(70)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(40)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(90)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(30)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(70)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.TOP, Sizes.DLUY7, FormSpec.NO_GROW),
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW),
                                new RowSpec(RowSpec.TOP, Sizes.dluY(10), FormSpec.NO_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.dluY(10), FormSpec.NO_GROW) }));

                //---- lblProveedorP ----
                lblProveedorP.setText("Proveedor:");
                panelPresupuestoProveedor.add(lblProveedorP,
                        cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtProveedorP ----
                txtProveedorP.setEditable(false);
                panelPresupuestoProveedor.add(txtProveedorP, cc.xywh(5, 3, 9, 1));

                //---- lblProductoP ----
                lblProductoP.setText("Producto:");
                panelPresupuestoProveedor.add(lblProductoP,
                        cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtProductoP ----
                txtProductoP.setEditable(false);
                panelPresupuestoProveedor.add(txtProductoP,
                        cc.xywh(5, 5, 9, 1, CellConstraints.FILL, CellConstraints.FILL));

                //---- lblConceptoPresupuestoDetalleP ----
                lblConceptoPresupuestoDetalleP.setText("Concepto:");
                panelPresupuestoProveedor.add(lblConceptoPresupuestoDetalleP,
                        cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //======== spConceptoPresupuestoDetalleP ========
                {

                    //---- txtConceptoPresupuestoDetalleP ----
                    txtConceptoPresupuestoDetalleP.setWrapStyleWord(false);
                    txtConceptoPresupuestoDetalleP.setRows(6);
                    txtConceptoPresupuestoDetalleP.setLineWrap(true);
                    txtConceptoPresupuestoDetalleP.setEditable(true);
                    spConceptoPresupuestoDetalleP.setViewportView(txtConceptoPresupuestoDetalleP);
                }
                panelPresupuestoProveedor.add(spConceptoPresupuestoDetalleP, cc.xywh(5, 7, 21, 5));

                //---- lblPrecioVentaP ----
                lblPrecioVentaP.setText("Precio de venta:");
                panelPresupuestoProveedor.add(lblPrecioVentaP,
                        cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //---- txtPrecioVentaP ----
                txtPrecioVentaP.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoProveedor.add(txtPrecioVentaP, cc.xywh(5, 13, 3, 1));

                //---- txtCantidadP ----
                txtCantidadP.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoProveedor.add(txtCantidadP, cc.xy(13, 13));

                //---- lblCantidadP ----
                lblCantidadP.setText("Cantidad:");
                panelPresupuestoProveedor.add(lblCantidadP,
                        cc.xywh(11, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));

                //======== panel13 ========
                {
                    panel13.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- btnAgregarDetalleP ----
                    btnAgregarDetalleP.setText("A");
                    panel13.add(btnAgregarDetalleP, cc.xy(1, 1));

                    //---- btnActualizarDetalleP ----
                    btnActualizarDetalleP.setText("U");
                    panel13.add(btnActualizarDetalleP, cc.xy(3, 1));

                    //---- btnEliminarDetalleP ----
                    btnEliminarDetalleP.setText("D");
                    panel13.add(btnEliminarDetalleP, cc.xy(5, 1));
                }
                panelPresupuestoProveedor.add(panel13, cc.xywh(3, 16, 19, 1));

                //======== scPresupuestoDetalleP ========
                {

                    //---- tblPresupuestoDetalleP ----
                    tblPresupuestoDetalleP.setModel(
                            new DefaultTableModel(new Object[][] { { null, null, null, null, null, null }, },
                                    new String[] { "Concepto", "Cantidad", "Precio Compra", "Precio Venta",
                                            "Dscto. Venta", "Dscto. Compra" }) {
                                boolean[] columnEditable = new boolean[] { false, false, false, false, false,
                                        false };

                                @Override
                                public boolean isCellEditable(int rowIndex, int columnIndex) {
                                    return columnEditable[columnIndex];
                                }
                            });
                    tblPresupuestoDetalleP.setPreferredScrollableViewportSize(new Dimension(450, 150));
                    tblPresupuestoDetalleP.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
                    scPresupuestoDetalleP.setViewportView(tblPresupuestoDetalleP);
                }
                panelPresupuestoProveedor.add(scPresupuestoDetalleP,
                        cc.xywh(3, 18, 25, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- lblTotalReporte ----
                lblTotalReporte.setText("Total:");
                panelPresupuestoProveedor.add(lblTotalReporte,
                        cc.xywh(21, 23, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- txtTotalReporte ----
                txtTotalReporte.setEditable(false);
                txtTotalReporte.setHorizontalAlignment(SwingConstants.RIGHT);
                panelPresupuestoProveedor.add(txtTotalReporte, cc.xywh(23, 23, 3, 1));
            }
            spPresupuestoProveedor.setViewportView(panelPresupuestoProveedor);
        }
        jtpPresupuesto.addTab("Reporte", spPresupuestoProveedor);

        //======== panelArchivos ========
        {
            panelArchivos.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(100)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY6),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) }));

            //---- lblTipoArchivo ----
            lblTipoArchivo.setText("Tipo Archivo:");
            panelArchivos.add(lblTipoArchivo,
                    cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelArchivos.add(cmbTipoArchivo, cc.xy(5, 3));

            //---- lblArchivo ----
            lblArchivo.setText("Archivo:");
            panelArchivos.add(lblArchivo, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- txtArchivo ----
            txtArchivo.setEditable(false);
            panelArchivos.add(txtArchivo, cc.xywh(5, 5, 3, 1));
            panelArchivos.add(btnBuscarArchivo,
                    cc.xywh(9, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

            //======== panel4 ========
            {
                panel4.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- btnAgregarArchivo ----
                btnAgregarArchivo.setText("A");
                panel4.add(btnAgregarArchivo, cc.xy(1, 1));

                //---- btnActualizarArchivo ----
                btnActualizarArchivo.setText("U");
                panel4.add(btnActualizarArchivo, cc.xy(3, 1));

                //---- btnEliminarArchivo ----
                btnEliminarArchivo.setText("D");
                panel4.add(btnEliminarArchivo, cc.xy(5, 1));
            }
            panelArchivos.add(panel4, cc.xywh(3, 9, 3, 1));
            panelArchivos.add(btnVerArchivo, cc.xywh(11, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

            //======== spTblArchivos ========
            {

                //---- tblArchivo ----
                tblArchivo.setModel(new DefaultTableModel(new Object[][] { { null, null }, },
                        new String[] { "Tipo Archivo", "Archivo" }) {
                    boolean[] columnEditable = new boolean[] { false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                spTblArchivos.setViewportView(tblArchivo);
            }
            panelArchivos.add(spTblArchivos, cc.xywh(3, 11, 11, 5));
        }
        jtpPresupuesto.addTab("Archivos", panelArchivos);

    }
    add(jtpPresupuesto, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.t3.client.ui.token.EditTokenDialog.java

License:Open Source License

private void updateStatesPanel() {
    // Group the states first into individual panels
    List<BooleanTokenOverlay> overlays = new ArrayList<BooleanTokenOverlay>(
            TabletopTool.getCampaign().getTokenStatesMap().values());
    Map<String, JPanel> groups = new TreeMap<String, JPanel>();
    groups.put("", new JPanel(new FormLayout("0px:grow 2px 0px:grow 2px 0px:grow 2px 0px:grow")));
    for (BooleanTokenOverlay overlay : overlays) {
        String group = overlay.getGroup();
        if (group != null && (group = group.trim()).length() != 0) {
            JPanel panel = groups.get(group);
            if (panel == null) {
                panel = new JPanel(new FormLayout("0px:grow 2px 0px:grow 2px 0px:grow 2px 0px:grow"));
                panel.setBorder(BorderFactory.createTitledBorder(group));
                groups.put(group, panel);
            }/*from   w  w w  .  j a v a2s .c o m*/
        }
    }
    // Add the group panels and bar panel to the states panel
    JPanel panel = getStatesPanel();
    panel.removeAll();
    FormLayout layout = new FormLayout("0px:grow");
    panel.setLayout(layout);
    int row = 1;
    for (JPanel gPanel : groups.values()) {
        layout.appendRow(new RowSpec("pref"));
        layout.appendRow(new RowSpec("2px"));
        panel.add(gPanel, new CellConstraints(1, row));
        row += 2;
    }
    layout.appendRow(new RowSpec("pref"));
    layout.appendRow(new RowSpec("2px"));
    JPanel barPanel = new JPanel(new FormLayout("right:pref 2px pref 5px right:pref 2px pref"));
    panel.add(barPanel, new CellConstraints(1, row));

    // Add the individual check boxes.
    for (BooleanTokenOverlay state : overlays) {
        String group = state.getGroup();
        panel = groups.get("");
        if (group != null && (group = group.trim()).length() != 0)
            panel = groups.get(group);
        int x = panel.getComponentCount() % 4;
        int y = panel.getComponentCount() / 4;
        if (x == 0) {
            layout = (FormLayout) panel.getLayout();
            if (y != 0)
                layout.appendRow(new RowSpec("2px"));
            layout.appendRow(new RowSpec("pref"));
        }
        panel.add(new JCheckBox(state.getName()), new CellConstraints(x * 2 + 1, y * 2 + 1));
    }
    // Add sliders to the bar panel
    if (TabletopTool.getCampaign().getTokenBarsMap().size() > 0) {
        layout = (FormLayout) barPanel.getLayout();
        barPanel.setName("bar");
        barPanel.setBorder(BorderFactory.createTitledBorder("Bars"));
        int count = 0;
        row = 0;
        for (BarTokenOverlay bar : TabletopTool.getCampaign().getTokenBarsMap().values()) {
            int working = count % 2;
            if (working == 0) { // slider row
                layout.appendRow(new RowSpec("pref"));
                row += 1;
            }
            JPanel labelPanel = new JPanel(new FormLayout("pref", "pref 2px:grow pref"));
            barPanel.add(labelPanel, new CellConstraints(1 + working * 4, row));
            labelPanel.add(new JLabel(bar.getName() + ":"),
                    new CellConstraints(1, 1, CellConstraints.RIGHT, CellConstraints.TOP));
            JSlider slider = new JSlider(0, 100);
            JCheckBox hide = new JCheckBox("Hide");
            hide.putClientProperty("JSlider", slider);
            hide.addChangeListener(new ChangeListener() {
                @Override
                public void stateChanged(ChangeEvent e) {
                    JSlider js = (JSlider) ((JCheckBox) e.getSource()).getClientProperty("JSlider");
                    js.setEnabled(!((JCheckBox) e.getSource()).isSelected());
                }
            });
            labelPanel.add(hide, new CellConstraints(1, 3, CellConstraints.RIGHT, CellConstraints.TOP));
            slider.setName(bar.getName());
            slider.setPaintLabels(true);
            slider.setPaintTicks(true);
            slider.setMajorTickSpacing(20);
            slider.createStandardLabels(20);
            slider.setMajorTickSpacing(10);
            barPanel.add(slider, new CellConstraints(3 + working * 4, row));
            if (working != 0) { // spacer row
                layout.appendRow(new RowSpec("2px"));
                row += 1;
            }
            count += 1;
        }
    }
}

From source file:coursescheduleapp.view.PrefSetView.java

License:Open Source License

/** This method is called from within the constructor to
 * initialize the form./* w w w. j  a v a2s.c  o m*/
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    coursePrefView1 = new CoursePrefView();

    FormLayout thisLayout = new FormLayout("max(p;5dlu), max(p;5dlu), max(p;5dlu), max(p;5dlu)",
            "max(p;5dlu), max(p;5dlu), max(p;5dlu), max(p;5dlu)");
    this.setLayout(thisLayout);
    this.add(coursePrefView1,
            new CellConstraints(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.TOP, new Insets(0, 0, 0, 4)));
    {
        schedPrefView1 = new SchedPrefView();
        this.add(schedPrefView1, new CellConstraints("3, 1, 1, 1, fill, top"));
    }
}

From source file:cz.vity.freerapid.gui.dialogs.SubmitErrorDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelName = new JLabel();
    fieldName = ComponentFactory.getTextField();
    JLabel labelEmail = new JLabel();
    fieldEmail = ComponentFactory.getTextField();
    JLabel labelComment = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    commentTextArea = ComponentFactory.getTextArea();
    JLabel labelDescribeInfo = new JLabel();
    JPanel buttonBar = new JPanel();
    btnConnection = new JButton();
    btnOk = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========

    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from w  w  w  .  j  a v a  2  s . co  m
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setName("dialogPane");
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setName("contentPanel");

            //---- labelName ----
            labelName.setLabelFor(fieldName);
            labelName.setName("labelName");

            //---- fieldName ----
            fieldName.setColumns(15);
            fieldName.setName("fieldName");

            //---- labelEmail ----
            labelEmail.setLabelFor(fieldEmail);
            labelEmail.setName("labelEmail");

            //---- fieldEmail ----
            fieldEmail.setColumns(15);
            fieldEmail.setName("fieldEmail");

            //---- labelComment ----
            labelComment.setLabelFor(commentTextArea);
            labelComment.setName("labelComment");

            //======== scrollPane1 ========
            {
                scrollPane1.setName("scrollPane1");

                //---- commentTextArea ----
                commentTextArea.setRows(10);
                commentTextArea.setLineWrap(true);
                commentTextArea.setName("commentTextArea");
                scrollPane1.setViewportView(commentTextArea);
            }

            //---- labelDescribeInfo ----
            labelDescribeInfo.setName("labelDescribeInfo");

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(labelName, cc.xy(1, 1));
            contentPanelBuilder.add(fieldName, cc.xy(3, 1));
            contentPanelBuilder.add(labelEmail, cc.xy(5, 1));
            contentPanelBuilder.add(fieldEmail, cc.xy(7, 1));
            contentPanelBuilder.add(labelComment,
                    cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
            contentPanelBuilder.add(scrollPane1, cc.xywh(3, 3, 5, 1));
            contentPanelBuilder.add(labelDescribeInfo, cc.xywh(3, 5, 5, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_PAD);
            buttonBar.setName("buttonBar");

            //---- button1 ----
            btnConnection.setName("btnConnection");

            //---- okButton ----
            btnOk.setName("okButton");

            //---- cancelButton ----

            btnCancel.setName("cancelButton");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;10dlu):grow"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC,
                            FormSpecs.RELATED_GAP_COLSPEC, ComponentFactory.BUTTON_COLSPEC },
                    RowSpec.decodeSpecs("pref")), buttonBar);

            buttonBarBuilder.add(btnConnection,
                    cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            buttonBarBuilder.add(btnOk, cc.xy(6, 1));
            buttonBarBuilder.add(btnCancel, cc.xy(8, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:de.dal33t.powerfolder.ui.notification.NotificationForm.java

License:Open Source License

/**
 * Create the UI for notification form/*from   w  w w . jav  a 2 s. c o m*/
 */
private JPanel createPanel(String titleText, String acceptOptionLabel, Action acceptAction,
        String cancelOptionLabel, Action cancelAction) {

    JPanel panel = new JPanel();
    panel.setBackground(Color.WHITE);
    CellConstraints cc = new CellConstraints();

    FormLayout formLayout;
    int internalWidth;
    if (acceptOptionLabel == null && cancelOptionLabel == null) {
        // No buttons
        formLayout = new FormLayout(
                //     content
                "3dlu, 150dlu:grow, 3dlu", "3dlu, pref, 15dlu, pref, 3dlu");
        //     head         msg
        internalWidth = 1;
    } else if (acceptOptionLabel != null && cancelOptionLabel != null) {
        // Two buttons
        formLayout = new FormLayout(
                //            button             button
                "3dlu, 10dlu, 80dlu:grow, 10dlu, 80dlu:grow, 10dlu, 3dlu",
                "3dlu, pref, 15dlu, pref, 15dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu");
        //     head         msg          hr          cb          btn
        internalWidth = 5;
    } else {
        // One button
        formLayout = new FormLayout(
                //            button
                "3dlu, 45dlu, 80dlu:grow, 45dlu, 3dlu",
                "3dlu, pref, 15dlu, pref, 15dlu, pref, 3dlu, pref, 3dlu, pref, 3dlu");
        //     head         msg          hr          cb          btn
        internalWidth = 3;
    }
    panel.setLayout(formLayout);

    // Heading
    panel.add(createHeaderPanel(titleText), cc.xyw(2, 2, internalWidth));

    // Message
    JTextArea textArea = new JTextArea();
    textArea.setText(messageText);
    textArea.setLineWrap(true);
    textArea.setWrapStyleWord(true);
    panel.add(textArea,
            new CellConstraints(2, 4, internalWidth, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    // If there are no buttons, don't show anything else.
    if (acceptOptionLabel != null || cancelOptionLabel != null) {

        // Separator
        panel.add(new JSeparator(), cc.xyw(2, 6, internalWidth));

        neverShowSystemNotificationCB = new JCheckBox(
                Translation.getTranslation("notification_form.never_show_system_notifications"));
        neverShowSystemNotificationCB.addActionListener(new MyActionListener());
        panel.add(neverShowSystemNotificationCB, cc.xyw(2, 8, internalWidth));

        // Buttons
        if (acceptOptionLabel != null && cancelOptionLabel != null) {
            // Two buttons
            JButton acceptButton = new JButton();
            acceptButton.setAction(acceptAction);
            acceptButton.setText(acceptOptionLabel);
            panel.add(acceptButton, cc.xy(3, 10));

            JButton cancelButton = new JButton();
            cancelButton.setAction(cancelAction);
            cancelButton.setText(cancelOptionLabel);
            panel.add(cancelButton, cc.xy(5, 10));
        } else {
            // Single button (accept or cancel)
            if (acceptOptionLabel != null) {
                // Accept
                JButton acceptButton = new JButton();
                acceptButton.setAction(acceptAction);
                acceptButton.setText(acceptOptionLabel);
                panel.add(acceptButton, cc.xy(3, 10));
            } else {
                // Cancel
                JButton cancelButton = new JButton();
                cancelButton.setAction(cancelAction);
                cancelButton.setText(cancelOptionLabel);
                panel.add(cancelButton, cc.xy(3, 10));
            }
        }
    }

    return panel;
}