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

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

Introduction

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

Prototype

public CellConstraints xywh(int col, int row, int colSpan, int rowSpan, Alignment colAlign,
        Alignment rowAlign) 

Source Link

Document

Sets the column, row, width, and height; sets the horizontal and vertical alignment using the specified alignment objects.

Examples:

 cc.xywh(1, 3, 2, 1, CellConstraints.LEFT,   CellConstraints.BOTTOM); cc.xywh(1, 3, 7, 3, CellConstraints.CENTER, CellConstraints.FILL); 

Usage

From source file:JPFamiliaGenerico.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    lblCodigo = new JLabel();
    txtCodigo = new JTextField();
    lblNombre = new JLabel();
    txtNombre = new JTextField();
    spTblFamiliaGenerico = new JScrollPane();
    tblFamiliaGenerico = new JTable();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    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(50)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(Sizes.dluX(150)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(60), FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
            new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(15)),
                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)), 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(10)) }));

    //---- lblCodigo ----
    lblCodigo.setText("C\u00f3digo:");
    lblCodigo.setHorizontalAlignment(SwingConstants.RIGHT);
    add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
    add(txtCodigo, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

    //---- lblNombre ----
    lblNombre.setText("Nombre:");
    lblNombre.setHorizontalAlignment(SwingConstants.RIGHT);
    add(lblNombre, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));
    add(txtNombre, cc.xywh(5, 5, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

    //======== spTblFamiliaGenerico ========
    {//from   ww w  .java 2  s.  c om

        //---- tblFamiliaGenerico ----
        tblFamiliaGenerico
                .setModel(new DefaultTableModel(new Object[][] {}, new String[] { "C\u00f3digo", "Nombre" }) {
                    boolean[] columnEditable = new boolean[] { false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
        spTblFamiliaGenerico.setViewportView(tblFamiliaGenerico);
    }
    add(spTblFamiliaGenerico, cc.xywh(3, 9, 7, 5));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:MultipleSettingsDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    ResourceBundle bundle = ResourceBundle.getBundle("MultipleSettingsDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel iconLabel = new JLabel();
    titleLabel = new JLabel();
    JLabel labelSize = new JLabel();
    fieldSize = new JTextField();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JPanel optionsPanel = new JPanel();
    JLabel saveToLabel = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JXButtonPanel buttonBar = new JXButtonPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {/*from   ww w . ja  va2s.  com*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- iconLabel ----
            iconLabel.setText(bundle.getString("iconLabel.text"));

            //---- titleLabel ----
            titleLabel.setText(bundle.getString("titleLabel.text"));
            titleLabel.setFont(new Font("Tahoma", Font.BOLD, 12));

            //---- labelSize ----
            labelSize.setText(bundle.getString("labelSize.text"));

            //---- fieldSize ----
            fieldSize.setBorder(null);
            fieldSize.setOpaque(false);
            fieldSize.setEditable(false);

            //---- labelDescription ----
            labelDescription.setText(bundle.getString("labelDescription.text"));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(descriptionArea);
            }

            //======== optionsPanel ========
            {

                //---- saveToLabel ----
                saveToLabel.setText(bundle.getString("saveToLabel.text"));
                saveToLabel.setLabelFor(comboPath);

                //---- comboPath ----
                comboPath.setEditable(true);

                //---- btnSelectPath ----
                btnSelectPath.setText(bundle.getString("btnSelectPath.text"));

                PanelBuilder optionsPanelBuilder = 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 },
                        RowSpec.decodeSpecs("default")), optionsPanel);

                optionsPanelBuilder.add(saveToLabel, cc.xy(1, 1));
                optionsPanelBuilder.add(comboPath, cc.xy(3, 1));
                optionsPanelBuilder.add(btnSelectPath, cc.xy(5, 1));
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(49)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;70dlu)") },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.TOP, Sizes.PREFERRED, FormSpec.NO_GROW),
                            FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(50)),
                                    FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(iconLabel,
                    cc.xywh(1, 1, 1, 5, CellConstraints.DEFAULT, CellConstraints.FILL));
            contentPanelBuilder.add(titleLabel, cc.xywh(3, 1, 5, 1));
            contentPanelBuilder.add(labelSize, cc.xy(3, 3));
            contentPanelBuilder.add(fieldSize, cc.xywh(5, 3, 3, 1));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 9, 7, 1));
            contentPanelBuilder.add(optionsPanel, cc.xywh(1, 11, 7, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

            //---- okButton ----
            okButton.setText(bundle.getString("okButton.text"));

            //---- cancelButton ----
            cancelButton.setText(bundle.getString("cancelButton.text"));

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;55dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 3, 5 } });

            buttonBarBuilder.add(okButton, cc.xy(3, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(5, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:AccountDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    ResourceBundle bundle = ResourceBundle.getBundle("AccountDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelIcon = new JLabel();
    JLabel labelUserName = new JLabel();
    fieldUserName = ComponentFactory.getTextField();
    JLabel labelPassword = new JLabel();
    fieldPassword = ComponentFactory.getPasswordField();
    JPanel buttonBar = new JPanel();
    btnOK = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {/*  w  w w.  jav  a  2 s .c o  m*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- labelIcon ----
            labelIcon.setIcon(new ImageIcon(
                    "C:\\develope\\freerapid\\src\\cz\\vity\\freerapid\\gui\\dialogs\\resources\\icons\\connection_password.gif"));

            //---- labelUserName ----
            labelUserName.setText(bundle.getString("labelUserName.text"));
            labelUserName.setLabelFor(fieldUserName);

            //---- labelPassword ----
            labelPassword.setText(bundle.getString("labelPassword.text"));
            labelPassword.setLabelFor(fieldPassword);

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { ColumnSpec.decode("max(pref;35dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("min(pref;40dlu):grow"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.UNRELATED_GAP_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(labelIcon,
                    cc.xywh(1, 1, 2, 7, CellConstraints.FILL, CellConstraints.CENTER));
            contentPanelBuilder.add(labelUserName, cc.xy(3, 1));
            contentPanelBuilder.add(fieldUserName, cc.xywh(3, 3, 3, 1));
            contentPanelBuilder.add(labelPassword, cc.xy(3, 5));
            contentPanelBuilder.add(fieldPassword, cc.xywh(3, 7, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- btnOK ----
            btnOK.setText(bundle.getString("btnOK.text"));

            //---- btnCancel ----
            btnCancel.setText(bundle.getString("btnCancel.text"));

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { ColumnSpec.decode("55px:grow"), FormSpecs.BUTTON_COLSPEC,
                            FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC },
                    RowSpec.decodeSpecs("default")), buttonBar);

            buttonBarBuilder.add(btnOK, cc.xy(2, 1));
            buttonBarBuilder.add(btnCancel, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:anl.verdi.plot.anim.MultiPlotAnimation.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    separator1 = compFactory.createSeparator("Select Plots");
    scrollPane1 = new JScrollPane();
    plotList = new CheckBoxList();
    panel1 = new JPanel();
    label1 = new JLabel();
    startSpinner = new JSpinner();
    startLbl = new JLabel();
    label2 = new JLabel();
    endSpinner = new JSpinner();
    endLbl = new JLabel();
    panel2 = new JPanel();
    gifChk = new JCheckBox();
    gifFileLbl = new JLabel();
    gifFileBtn = new JButton();
    separator2 = compFactory.createSeparator("");
    CellConstraints cc = new CellConstraints();

    //======== this ========
    // 2014//from   w  w  w .  j a v  a  2  s  .c  o m
    ColumnSpec[] aColumnSpec = ColumnSpec.decodeSpecs("default:grow");
    RowSpec aRowSpec = new RowSpec(RowSpec.TOP, Sizes.dluY(84), 0.5);
    RowSpec bRowSpec = new RowSpec(RowSpec.FILL, Sizes.PREFERRED, 0.5);
    setLayout(new FormLayout(aColumnSpec,
            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC, aRowSpec,
                    FormFactory.RELATED_GAP_ROWSPEC, bRowSpec, FormFactory.RELATED_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
    //      setLayout(new FormLayout(
    //            ColumnSpec.decodeSpecs("default:grow"),
    //            new RowSpec[] {
    //               FormFactory.DEFAULT_ROWSPEC,
    //               FormFactory.RELATED_GAP_ROWSPEC,
    //               new RowSpec(RowSpec.TOP, Sizes.dluY(84), 0.5),
    //               FormFactory.RELATED_GAP_ROWSPEC,
    //               new RowSpec(RowSpec.FILL, Sizes.PREFERRED, 0.5),
    //               FormFactory.RELATED_GAP_ROWSPEC,
    //               FormFactory.DEFAULT_ROWSPEC,
    //               FormFactory.LINE_GAP_ROWSPEC,
    //               FormFactory.DEFAULT_ROWSPEC
    //            }));
    add(separator1, cc.xy(1, 1));

    //======== scrollPane1 ========
    {
        scrollPane1.setViewportView(plotList);
    }
    add(scrollPane1, cc.xy(1, 3));

    //======== panel1 ========
    {
        // 2014
        ColumnSpec[] dColumnSpec = ColumnSpec.decodeSpecs("max(pref;40dlu)");
        ColumnSpec[] eColumnSpec = ColumnSpec.decodeSpecs("max(pref;40dlu):grow");
        panel1.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(71)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        dColumnSpec[0], FormFactory.UNRELATED_GAP_COLSPEC, eColumnSpec[0] },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));
        //         panel1.setLayout(new FormLayout(
        //               new ColumnSpec[] {
        //                  new ColumnSpec(Sizes.dluX(71)),
        //                  FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
        //                  new ColumnSpec("max(pref;40dlu)"),
        //                  FormFactory.UNRELATED_GAP_COLSPEC,
        //                  new ColumnSpec("max(pref;40dlu):grow")
        //               },
        //               new RowSpec[] {
        //                  FormFactory.DEFAULT_ROWSPEC,
        //                  FormFactory.LINE_GAP_ROWSPEC,
        //                  FormFactory.DEFAULT_ROWSPEC
        //               }));

        //---- label1 ----
        label1.setText("Starting Time Step:");
        panel1.add(label1, cc.xy(1, 1));
        panel1.add(startSpinner, cc.xy(3, 1));

        //---- startLbl ----
        startLbl.setFont(new Font("Tahoma", Font.BOLD, 11));
        panel1.add(startLbl, cc.xy(5, 1));

        //---- label2 ----
        label2.setText("Ending Time Step:");
        panel1.add(label2, cc.xy(1, 3));
        panel1.add(endSpinner, cc.xy(3, 3));

        //---- endLbl ----
        endLbl.setFont(new Font("Tahoma", Font.BOLD, 11));
        panel1.add(endLbl, cc.xy(5, 3));
    }
    add(panel1, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //======== panel2 ========
    {
        // 2014
        ColumnSpec fColumnSpec = new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW);
        RowSpec[] fRowSpec = RowSpec.decodeSpecs("default");
        panel2.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        fColumnSpec, FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                fRowSpec));
        //         panel2.setLayout(new FormLayout(
        //               new ColumnSpec[] {
        //                  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
        //               },
        //               RowSpec.decodeSpecs("default")));

        //---- gifChk ----
        gifChk.setText("Make Animated GIF(s)");
        panel2.add(gifChk, cc.xy(1, 1));
        panel2.add(gifFileLbl, cc.xy(3, 1));

        //---- gifFileBtn ----
        gifFileBtn.setText("...");
        gifFileBtn.setMaximumSize(new Dimension(23, 23));
        gifFileBtn.setMinimumSize(new Dimension(23, 23));
        gifFileBtn.setPreferredSize(new Dimension(23, 23));
        gifFileBtn.setEnabled(false);
        panel2.add(gifFileBtn, cc.xy(5, 1));
    }
    add(panel2, cc.xy(1, 7));
    add(separator2, cc.xy(1, 9));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:au.gov.nla.atplugin.multiplecomponentidentifiers.editor.ArchDescComponentIdentifiersFields.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    mainPanel = new JPanel();
    label3 = new JLabel();
    label1 = new JLabel();
    label2 = new JLabel();
    identifierTypeList = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescComponentIdentifiers.PROPERTYNAME_IDENTIFIER_TYPE, ArchDescComponentIdentifiers.class);
    identifierLabelList = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescComponentIdentifiers.PROPERTYNAME_IDENTIFIER_LABEL, ArchDescComponentIdentifiers.class);
    identifierValue = ATBasicComponentFactory.createTextField(
            detailsModel.getModel(ArchDescComponentIdentifiers.PROPERTYNAME_COMPONENT_IDENTIFIER), true);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout("default:grow", "top:default:grow"));

    //======== mainPanel ========
    {//  w  w  w  . ja  v a2s  . c  o  m
        mainPanel.setBorder(Borders.DLU4_BORDER);
        mainPanel.setOpaque(false);
        mainPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        mainPanel.setBackground(new Color(200, 205, 232));
        mainPanel.setLayout(new FormLayout("max(min;150px), 1px, max(min;150px), 1px, max(default;150px)",
                "default, default, default, default, default, default"));

        //---- label3 ----
        label3.setText("Identifier Type");
        label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        mainPanel.add(label3, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

        //---- label1 ----
        label1.setText("Identifier Label");
        mainPanel.add(label1, cc.xy(3, 3));

        //---- label2 ----
        label2.setText("Identifier Value");
        mainPanel.add(label2, cc.xy(5, 3));

        //---- identifierTypeList ----
        identifierTypeList.setOpaque(false);
        identifierTypeList.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        mainPanel.add(identifierTypeList, cc.xywh(1, 4, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- identifierLabelList ----
        identifierLabelList.setOpaque(false);
        identifierLabelList.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        mainPanel.add(identifierLabelList, cc.xywh(3, 4, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        mainPanel.add(identifierValue, cc.xy(5, 4));
    }
    add(mainPanel, cc.xy(1, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:au.gov.nla.atplugin.multiplecomponentidentifiers.panel.ResourceBasicInfoPanel.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel2 = new JPanel();
    label_resourcesTitle = new JLabel();
    scrollPane2 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    panel38 = new JPanel();
    panel35 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    resourcesDateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label1 = new JLabel();
    label_resourcesDateBegin = new JLabel();
    resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_resourcesBulkDateBegin = new JLabel();
    resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_BEGIN);
    label_resourcesBulkDateEnd = new JLabel();
    resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_END);
    panel3 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class);
    panel37 = new JPanel();
    panel20 = new JPanel();
    ExtentLabel = new JLabel();
    panel21 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            Resources.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE,
            Resources.class);
    label_resourcesExtentDescription = new JLabel();
    scrollPane422 = new JScrollPane();
    containerSummary = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false);
    label_resourcesLanguageNote = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    panel6 = new JPanel();
    label_agreementReceived2 = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    separator2 = new JSeparator();
    panel13 = new JPanel();
    panel12 = new JPanel();
    label_resourceIdentifier1 = new JLabel();
    resourceIdentifier1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_1));
    resourceIdentifier2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_2));
    resourceIdentifier3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_3));
    resourceIdentifier4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_4));
    panel19 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LEVEL,
            Resources.class);
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_OTHER_LEVEL), false);
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    identifiersTable = new DomainSortableTable();
    panel23 = new JPanel();
    addIdentifier = new JButton();
    removeIdentifier = new JButton();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel29 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class);
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    accessionsTable = new DomainSortableTable();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:max(default;300px):grow") },
            RowSpec.decodeSpecs("default")));

    //======== panel2 ========
    {/*from  w w  w . j  ava 2  s . c  om*/
        panel2.setBackground(new Color(200, 205, 232));
        panel2.setLayout(new FormLayout("default:grow",
                "fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow"));

        //---- label_resourcesTitle ----
        label_resourcesTitle.setText("Title");
        label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_resourcesTitle, Resources.class, Resources.PROPERTYNAME_TITLE);
        panel2.add(label_resourcesTitle, cc.xy(1, 1));

        //======== scrollPane2 ========
        {

            //---- resourcesTitle ----
            resourcesTitle.setRows(4);
            resourcesTitle.setLineWrap(true);
            resourcesTitle.setWrapStyleWord(true);
            resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane2.setViewportView(resourcesTitle);
        }
        panel2.add(scrollPane2, cc.xy(1, 2));

        //======== tagApplicatorPanel ========
        {
            tagApplicatorPanel.setOpaque(false);
            tagApplicatorPanel
                    .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")));

            //---- insertInlineTag ----
            insertInlineTag.setOpaque(false);
            insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            insertInlineTag.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    insertInlineTagActionPerformed();
                }
            });
            tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1));
        }
        panel2.add(tagApplicatorPanel, cc.xy(1, 3));

        //======== panel38 ========
        {
            panel38.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panel38.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel38.setBackground(new Color(182, 187, 212));
            panel38.setLayout(new FormLayout("60px:grow", "fill:default:grow"));

            //======== panel35 ========
            {
                panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.setOpaque(false);
                panel35.setBorder(Borders.DLU2_BORDER);
                panel35.setLayout(new FormLayout(
                        new ColumnSpec[] { 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, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- label_resourcesDateExpression ----
                label_resourcesDateExpression.setText("Date Expression");
                label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, Resources.class,
                        Resources.PROPERTYNAME_DATE_EXPRESSION);
                panel35.add(label_resourcesDateExpression,
                        cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- resourcesDateExpression ----
                resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateExpression, new CellConstraints(4, 1, 5, 1, CellConstraints.DEFAULT,
                        CellConstraints.TOP, new Insets(0, 0, 0, 5)));

                //---- Date1Label1 ----
                Date1Label1.setText("Inclusive Dates");
                Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(Date1Label1, new CellConstraints(2, 3, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label_resourcesDateBegin ----
                label_resourcesDateBegin.setText("Begin");
                label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, Resources.class,
                        Resources.PROPERTYNAME_DATE_BEGIN);
                panel35.add(label_resourcesDateBegin, cc.xy(4, 3));

                //---- resourcesDateBegin ----
                resourcesDateBegin.setColumns(4);
                resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateBegin,
                        cc.xywh(6, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- label_resourcesDateEnd ----
                label_resourcesDateEnd.setText("End");
                label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, Resources.class,
                        Resources.PROPERTYNAME_DATE_END);
                panel35.add(label_resourcesDateEnd, cc.xy(8, 3));

                //---- resourcesDateEnd ----
                resourcesDateEnd.setColumns(4);
                resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateEnd, new CellConstraints(10, 3, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- BulkDatesLabel ----
                BulkDatesLabel.setText("Bulk Dates");
                BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(BulkDatesLabel, new CellConstraints(2, 5, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label_resourcesBulkDateBegin ----
                label_resourcesBulkDateBegin.setText("Begin");
                label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_BEGIN);
                panel35.add(label_resourcesBulkDateBegin, cc.xy(4, 5));

                //---- resourcesBulkDateBegin ----
                resourcesBulkDateBegin.setColumns(4);
                resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateBegin,
                        cc.xywh(6, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- label_resourcesBulkDateEnd ----
                label_resourcesBulkDateEnd.setText("End");
                label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_END);
                panel35.add(label_resourcesBulkDateEnd, cc.xy(8, 5));

                //---- resourcesBulkDateEnd ----
                resourcesBulkDateEnd.setColumns(4);
                resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateEnd, new CellConstraints(10, 5, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
            }
            panel38.add(panel35, cc.xy(1, 1));
        }
        panel2.add(panel38, cc.xy(1, 4));

        //======== panel3 ========
        {
            panel3.setBackground(new Color(200, 205, 232));
            panel3.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("200px") },
                            RowSpec.decodeSpecs("fill:default:grow")));

            //---- label_resourcesLanguageCode ----
            label_resourcesLanguageCode.setText("Language");
            label_resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode, Resources.class,
                    Resources.PROPERTYNAME_LANGUAGE_CODE);
            panel3.add(label_resourcesLanguageCode, cc.xy(1, 1));

            //---- resourcesLanguageCode ----
            resourcesLanguageCode.setMaximumSize(new Dimension(50, 27));
            resourcesLanguageCode.setOpaque(false);
            resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel3.add(resourcesLanguageCode, cc.xywh(2, 1, 2, 1));
        }
        panel2.add(panel3, cc.xy(1, 5));

        //======== panel37 ========
        {
            panel37.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panel37.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel37.setBackground(new Color(182, 187, 212));
            panel37.setLayout(new FormLayout("60px:grow", "fill:default:grow"));

            //======== panel20 ========
            {
                panel20.setOpaque(false);
                panel20.setBorder(Borders.DLU2_BORDER);
                panel20.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new 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.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //---- ExtentLabel ----
                ExtentLabel.setText("Extent");
                ExtentLabel.setForeground(new Color(0, 0, 102));
                ExtentLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel20.add(ExtentLabel, cc.xywh(1, 1, 2, 1));

                //======== panel21 ========
                {
                    panel21.setOpaque(false);
                    panel21.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")));

                    //---- label_resourcesExtentNumber ----
                    label_resourcesExtentNumber.setText("Extent");
                    label_resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber, Resources.class,
                            Resources.PROPERTYNAME_EXTENT_NUMBER);
                    panel21.add(label_resourcesExtentNumber,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- resourcesExtentNumber ----
                    resourcesExtentNumber.setColumns(4);
                    resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel21.add(resourcesExtentNumber,
                            cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- extentType ----
                    extentType.setOpaque(false);
                    extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT,
                            CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));
                }
                panel20.add(panel21, cc.xy(2, 3));

                //---- label_resourcesExtentDescription ----
                label_resourcesExtentDescription.setText("Container Summary");
                label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class,
                        Resources.PROPERTYNAME_CONTAINER_SUMMARY);
                panel20.add(label_resourcesExtentDescription, cc.xy(2, 5));

                //======== scrollPane422 ========
                {
                    scrollPane422.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane422.setOpaque(false);
                    scrollPane422.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- containerSummary ----
                    containerSummary.setRows(4);
                    containerSummary.setWrapStyleWord(true);
                    containerSummary.setLineWrap(true);
                    containerSummary.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane422.setViewportView(containerSummary);
                }
                panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT,
                        CellConstraints.FILL, new Insets(0, 15, 5, 5)));
            }
            panel37.add(panel20, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        panel2.add(panel37, cc.xy(1, 6));

        //---- label_resourcesLanguageNote ----
        label_resourcesLanguageNote.setText("Repository Processing Note");
        label_resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote, Resources.class,
                Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE);
        panel2.add(label_resourcesLanguageNote, cc.xy(1, 7));

        //======== scrollPane423 ========
        {
            scrollPane423.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane423.setOpaque(false);
            scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

            //---- resourcesLanguageNote ----
            resourcesLanguageNote.setRows(4);
            resourcesLanguageNote.setLineWrap(true);
            resourcesLanguageNote.setWrapStyleWord(true);
            resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane423.setViewportView(resourcesLanguageNote);
        }
        panel2.add(scrollPane423, cc.xy(1, 8));

        //======== panel6 ========
        {
            panel6.setOpaque(false);
            panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel6.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_agreementReceived2 ----
            label_agreementReceived2.setText("Repository:");
            label_agreementReceived2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_agreementReceived2, Resources.class,
                    Resources.PROPERTYNAME_REPOSITORY);
            panel6.add(label_agreementReceived2, cc.xy(1, 1));

            //---- repositoryName ----
            repositoryName.setEditable(false);
            repositoryName.setOpaque(false);
            repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            repositoryName.setBorder(null);
            panel6.add(repositoryName, cc.xy(3, 1));

            //---- changeRepositoryButton ----
            changeRepositoryButton.setText("Change");
            changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeRepositoryButton.setOpaque(false);
            changeRepositoryButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeRepositoryButtonActionPerformed();
                }
            });
            panel6.add(changeRepositoryButton,
                    cc.xywh(5, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        panel2.add(panel6, cc.xy(1, 9));
    }
    add(panel2, cc.xy(1, 1));

    //---- separator2 ----
    separator2.setForeground(new Color(147, 131, 86));
    separator2.setOrientation(SwingConstants.VERTICAL);
    add(separator2, cc.xy(3, 1));

    //======== panel13 ========
    {
        panel13.setOpaque(false);
        panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.setBorder(Borders.DLU2_BORDER);
        panel13.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                FormFactory.LINE_GAP_ROWSPEC }));

        //======== panel12 ========
        {
            panel12.setBackground(new Color(231, 188, 251));
            panel12.setOpaque(false);
            panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));
            ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

            //---- label_resourceIdentifier1 ----
            label_resourceIdentifier1.setText("Resource ID");
            label_resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourceIdentifier1, Resources.class,
                    Resources.PROPERTYNAME_RESOURCE_IDENTIFIER);
            panel12.add(label_resourceIdentifier1, cc.xy(1, 1));

            //---- resourceIdentifier1 ----
            resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(resourceIdentifier1, cc.xy(3, 1));

            //---- resourceIdentifier2 ----
            resourceIdentifier2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(resourceIdentifier2, cc.xy(5, 1));

            //---- resourceIdentifier3 ----
            resourceIdentifier3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(resourceIdentifier3, cc.xy(7, 1));

            //---- resourceIdentifier4 ----
            resourceIdentifier4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(resourceIdentifier4, cc.xy(9, 1));
        }
        panel13.add(panel12, cc.xy(1, 1));

        //======== panel19 ========
        {
            panel19.setOpaque(false);
            panel19.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel19.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            new ColumnSpec(Sizes.DLUX3),
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_resourcesLevel ----
            label_resourcesLevel.setText("Level");
            label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLevel, Resources.class, Resources.PROPERTYNAME_LEVEL);
            panel19.add(label_resourcesLevel,
                    cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- resourcesLevel ----
            resourcesLevel.setOpaque(false);
            resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourcesLevel.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    resourcesLevelActionPerformed();
                }
            });
            panel19.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- label_otherLevel ----
            label_otherLevel.setText("Other Level");
            label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_otherLevel, Resources.class, Resources.PROPERTYNAME_OTHER_LEVEL);
            panel19.add(label_otherLevel, cc.xy(5, 1));

            //---- resourcesOtherLevel ----
            resourcesOtherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel19.add(resourcesOtherLevel, new CellConstraints(7, 1, 3, 1, CellConstraints.FILL,
                    CellConstraints.TOP, new Insets(0, 0, 0, 5)));
        }
        panel13.add(panel19, cc.xy(1, 3));

        //---- label_repositoryName5 ----
        label_repositoryName5.setText("Identifiers");
        label_repositoryName5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.add(label_repositoryName5, cc.xy(1, 5));

        //======== scrollPane9 ========
        {
            scrollPane9.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane9.setPreferredSize(new Dimension(200, 104));

            //---- identifiersTable ----
            identifiersTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            identifiersTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    identifiersMouseClicked(e);
                }
            });
            scrollPane9.setViewportView(identifiersTable);
        }
        panel13.add(scrollPane9, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel23 ========
        {
            panel23.setBackground(new Color(231, 188, 251));
            panel23.setOpaque(false);
            panel23.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel23.setMinimumSize(new Dimension(100, 29));
            panel23.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- addIdentifier ----
            addIdentifier.setText("Add Identifier");
            addIdentifier.setOpaque(false);
            addIdentifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addIdentifier.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addIdentifierActionPerformed();
                }
            });
            panel23.add(addIdentifier, cc.xy(1, 1));

            //---- removeIdentifier ----
            removeIdentifier.setText("Remove Identifier");
            removeIdentifier.setOpaque(false);
            removeIdentifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeIdentifier.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeIdentifierActionPerformed();
                }
            });
            panel23.add(removeIdentifier, cc.xy(3, 1));
        }
        panel13.add(panel23, cc.xywh(1, 9, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label1 ----
        label1.setText("Instances");
        label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label1, Resources.class, ResourcesComponents.PROPERTYNAME_INSTANCES);
        panel13.add(label1, cc.xy(1, 11));

        //======== scrollPane6 ========
        {
            scrollPane6.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane6.setOpaque(false);
            scrollPane6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

            //---- instancesTable ----
            instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
            instancesTable.setRowHeight(20);
            instancesTable.setFocusable(false);
            instancesTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    instancesTableMouseClicked(e);
                }
            });
            scrollPane6.setViewportView(instancesTable);
        }
        panel13.add(scrollPane6, cc.xywh(1, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel29 ========
        {
            panel29.setBackground(new Color(231, 188, 251));
            panel29.setOpaque(false);
            panel29.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel29.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- addInstanceButton ----
            addInstanceButton.setText("Add Instance");
            addInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addInstanceButton.setOpaque(false);
            addInstanceButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addInstanceButtonActionPerformed();
                }
            });
            panel29.add(addInstanceButton, cc.xy(1, 1));

            //---- removeInstanceButton ----
            removeInstanceButton.setText("Remove Instance");
            removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeInstanceButton.setOpaque(false);
            removeInstanceButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeInstanceButtonActionPerformed();
                }
            });
            panel29.add(removeInstanceButton, cc.xy(3, 1));
        }
        panel13.add(panel29, cc.xywh(1, 15, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- restrictionsApply ----
        restrictionsApply.setText("Restrictions Apply");
        restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        restrictionsApply.setOpaque(false);
        restrictionsApply.setText(
                ATFieldInfo.getLabel(Resources.class, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
        panel13.add(restrictionsApply, cc.xy(1, 17));

        //---- OtherAccessionsLabel ----
        OtherAccessionsLabel.setText("Accessions linked to this Resource ID:");
        OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.add(OtherAccessionsLabel, cc.xy(1, 19));

        //======== scrollPane4 ========
        {
            scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane4.setPreferredSize(new Dimension(300, 100));
            scrollPane4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

            //---- accessionsTable ----
            accessionsTable.setPreferredScrollableViewportSize(new Dimension(300, 100));
            accessionsTable.setFocusable(false);
            scrollPane4.setViewportView(accessionsTable);
        }
        panel13.add(scrollPane4, cc.xywh(1, 21, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel13, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.atlassian.theplugin.idea.crucible.CrucibleReviewCreateForm.java

License:Apache License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL//from   ww w .  j a va2 s . c o m
 */
private void $$$setupUI$$$() {
    rootComponent = new JPanel();
    rootComponent.setLayout(new FormLayout("fill:d:grow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,center:max(d;4px):noGrow,center:p:grow,top:3dlu:noGrow,fill:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    rootComponent.setMinimumSize(new Dimension(800, 505));
    final JLabel label1 = new JLabel();
    label1.setText("Title:");
    CellConstraints cc = new CellConstraints();
    rootComponent.add(label1, cc.xy(1, 1));
    titleText = new JTextField();
    rootComponent.add(titleText, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:d:noGrow,left:4dlu:noGrow,fill:300px:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(p;4px):grow",
            "center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow"));
    rootComponent.add(panel1, cc.xy(1, 5));
    final JLabel label2 = new JLabel();
    label2.setText("Server:");
    panel1.add(label2, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER));
    crucibleServersComboBox = new JComboBox();
    panel1.add(crucibleServersComboBox, cc.xy(3, 1));
    final JLabel label3 = new JLabel();
    label3.setInheritsPopupMenu(false);
    label3.setText("Project:");
    panel1.add(label3, cc.xy(1, 3, CellConstraints.DEFAULT, CellConstraints.CENTER));
    projectsComboBox = new JComboBox();
    panel1.add(projectsComboBox, cc.xy(3, 3));
    final JLabel label4 = new JLabel();
    label4.setText("Moderator:");
    panel1.add(label4, cc.xy(1, 7, CellConstraints.DEFAULT, CellConstraints.CENTER));
    final JLabel label5 = new JLabel();
    label5.setText("Author:");
    panel1.add(label5, cc.xy(1, 9, CellConstraints.DEFAULT, CellConstraints.CENTER));
    moderatorComboBox = new JComboBox();
    panel1.add(moderatorComboBox, cc.xy(3, 7));
    authorComboBox = new JComboBox();
    panel1.add(authorComboBox, cc.xy(3, 9));
    final JPanel panel2 = new JPanel();
    panel2.setLayout(new BorderLayout(0, 0));
    panel1.add(panel2, cc.xywh(7, 1, 1, 7, CellConstraints.DEFAULT, CellConstraints.FILL));
    final JScrollPane scrollPane1 = new JScrollPane();
    panel2.add(scrollPane1, BorderLayout.CENTER);
    final JLabel label6 = new JLabel();
    label6.setText("Reviewers: ");
    panel1.add(label6, cc.xy(5, 1, CellConstraints.RIGHT, CellConstraints.TOP));
    final JLabel label7 = new JLabel();
    label7.setText("Selected: ");
    panel1.add(label7, cc.xy(5, 9, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    final JLabel label8 = new JLabel();
    label8.setText("Statement of Objectives:");
    rootComponent.add(label8, cc.xy(1, 7));
    final JScrollPane scrollPane2 = new JScrollPane();
    rootComponent.add(scrollPane2, cc.xy(1, 9, CellConstraints.FILL, CellConstraints.FILL));
    statementArea = new JTextArea();
    statementArea.setLineWrap(true);
    statementArea.setRows(5);
    scrollPane2.setViewportView(statementArea);
    customComponentPanel = new JPanel();
    customComponentPanel.setLayout(new BorderLayout(0, 0));
    rootComponent.add(customComponentPanel, cc.xy(1, 11, CellConstraints.DEFAULT, CellConstraints.FILL));
    label1.setLabelFor(titleText);
    label2.setLabelFor(crucibleServersComboBox);
    label5.setLabelFor(scrollPane1);
    label8.setLabelFor(statementArea);
}

From source file:com.devdaily.heidi.LicenseReminderDialog.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    htmlMessageScrollPane = new JScrollPane();
    htmlMessageArea = new JEditorPane();
    closeButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {/*w  w w  . jav a 2 s  .c om*/
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.GLUE_COLSPEC,
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.dluX(0), FormSpec.NO_GROW),
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            new ColumnSpec(Sizes.dluX(0)), FormFactory.GLUE_COLSPEC },
                                    new RowSpec[] { FormFactory.LINE_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //======== htmlMessageScrollPane ========
            {

                //---- htmlMessageArea ----
                htmlMessageArea.setContentType("text/html");
                htmlMessageArea.setEditable(false);
                htmlMessageArea.setFont(new Font("Monaco", Font.PLAIN, 13));
                htmlMessageArea.setMargin(new Insets(4, 4, 4, 4));
                htmlMessageArea.setMinimumSize(new Dimension(360, 240));
                htmlMessageArea.setPreferredSize(new Dimension(360, 240));
                htmlMessageScrollPane.setViewportView(htmlMessageArea);
            }
            contentPanel.add(htmlMessageScrollPane, cc.xy(3, 3));

            //---- closeButton ----
            closeButton.setText("Close");
            contentPanel.add(closeButton, cc.xywh(3, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.pianobakery.complsa.MainGui.java

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL/*from   ww  w  . j  a  v a2  s . c om*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    mainPanel = new JPanel();
    mainPanel.setLayout(new FormLayout("fill:max(m;620px):grow", "center:max(m;600px):grow"));
    tabbedPane1 = new JTabbedPane();
    tabbedPane1.setEnabled(true);
    CellConstraints cc = new CellConstraints();
    mainPanel.add(tabbedPane1, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    setupPanel = new JPanel();
    setupPanel.setLayout(new FormLayout(
            "fill:d:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:126px:noGrow,fill:max(d;4px):noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:5dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:52px:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,fill:d:grow,fill:d:grow,fill:66px:noGrow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    tabbedPane1.addTab("Project", setupPanel);
    newFolderButton = new JButton();
    newFolderButton.setText("New Folder");
    setupPanel.add(newFolderButton, cc.xy(1, 5));
    final JLabel label1 = new JLabel();
    label1.setText("Project Folder:");
    setupPanel.add(label1, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    selectFolderButton = new JButton();
    selectFolderButton.setText("Select Folder");
    setupPanel.add(selectFolderButton, cc.xy(5, 5));
    wDirText = new JTextField();
    wDirText.setEditable(false);
    wDirText.setText("Create or select Project Folder");
    setupPanel.add(wDirText, cc.xyw(7, 5, 48, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label2 = new JLabel();
    label2.setText("The Project Folder contains all the Project Data.");
    setupPanel.add(label2, cc.xyw(1, 3, 54));
    final JLabel label3 = new JLabel();
    label3.setText("Arrange your Documents in a Folder. Then add it to the Software.");
    setupPanel.add(label3, cc.xyw(1, 15, 54));
    downloadModelButton = new JButton();
    downloadModelButton.setText("Download Models");
    setupPanel.add(downloadModelButton, cc.xy(1, 9));
    final JLabel label4 = new JLabel();
    label4.setText("Language Models:");
    setupPanel.add(label4, cc.xy(5, 9));
    langModelsText = new JLabel();
    langModelsText.setText("");
    setupPanel.add(langModelsText, cc.xyw(7, 9, 48));
    trainCorpButton = new JButton();
    trainCorpButton.setText("Train Semantics");
    setupPanel.add(trainCorpButton, cc.xy(1, 33, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label5 = new JLabel();
    label5.setText("Create Semantic Knowledge with selected Training Corpus:");
    setupPanel.add(label5, cc.xyw(1, 25, 7));
    addTopicCorpusButton = new JButton();
    addTopicCorpusButton.setEnabled(true);
    addTopicCorpusButton.setText(" Add Corpus Folder");
    setupPanel.add(addTopicCorpusButton, cc.xy(1, 19));
    addCorpRecursiveCheckBox = new JCheckBox();
    addCorpRecursiveCheckBox.setSelected(true);
    addCorpRecursiveCheckBox.setText("Recursive");
    setupPanel.add(addCorpRecursiveCheckBox, cc.xy(5, 19));
    createChunksCheckBox = new JCheckBox();
    createChunksCheckBox.setSelected(true);
    createChunksCheckBox.setText("Split in Paragraph of:");
    setupPanel.add(createChunksCheckBox, cc.xy(7, 19));
    final JLabel label6 = new JLabel();
    label6.setText("Add/Remove Training Corpus:");
    setupPanel.add(label6, cc.xyw(1, 17, 5));
    final JLabel label7 = new JLabel();
    label7.setText("Select Training Corpus:");
    setupPanel.add(label7, cc.xyw(1, 21, 54));
    selectTrainCorp = new JComboBox();
    selectTrainCorp.setEnabled(true);
    setupPanel.add(selectTrainCorp, cc.xyw(1, 23, 5));
    removeTopicCorpusButton = new JButton();
    removeTopicCorpusButton.setEnabled(true);
    removeTopicCorpusButton.setHorizontalAlignment(2);
    removeTopicCorpusButton.setText("Remove Training Corpus");
    setupPanel.add(removeTopicCorpusButton, cc.xy(7, 23));
    setupPanel.add(indexTypeComboBox, cc.xy(7, 33));
    amountOfSentencesPerTextField = new JTextField();
    amountOfSentencesPerTextField.setHorizontalAlignment(2);
    amountOfSentencesPerTextField.setText("20");
    setupPanel.add(amountOfSentencesPerTextField,
            cc.xyw(9, 19, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    posIndRadiusTextField = new JTextField();
    posIndRadiusTextField.setHorizontalAlignment(2);
    posIndRadiusTextField.setText("20");
    setupPanel.add(posIndRadiusTextField, cc.xyw(9, 33, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label8 = new JLabel();
    label8.setText("Indextype:");
    setupPanel.add(label8, cc.xy(5, 33, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    final JLabel label9 = new JLabel();
    label9.setHorizontalAlignment(2);
    label9.setText("Sentences");
    setupPanel.add(label9, cc.xy(15, 19));
    final JLabel label10 = new JLabel();
    label10.setHorizontalAlignment(2);
    label10.setText("Words");
    setupPanel.add(label10, cc.xy(15, 33));
    setupPanel.add(termComboBox, cc.xyw(31, 33, 19));
    final JLabel label11 = new JLabel();
    label11.setText("Termweight:");
    setupPanel.add(label11, cc.xyw(18, 33, 13));
    updateIndexButton = new JButton();
    updateIndexButton.setText("Update Index");
    setupPanel.add(updateIndexButton, cc.xy(1, 29));
    removeIndexButton = new JButton();
    removeIndexButton.setText("Remove Index");
    setupPanel.add(removeIndexButton, cc.xy(5, 29));
    final JLabel label12 = new JLabel();
    label12.setText("Add/Remove Search Corpus:");
    setupPanel.add(label12, cc.xyw(1, 41, 5));
    impSearchCorpButton = new JButton();
    impSearchCorpButton.setText("Add Search Corpus");
    setupPanel.add(impSearchCorpButton, cc.xy(1, 43));
    impSearchCorpRecursiveCheckBox = new JCheckBox();
    impSearchCorpRecursiveCheckBox.setSelected(true);
    impSearchCorpRecursiveCheckBox.setText("Recursive");
    setupPanel.add(impSearchCorpRecursiveCheckBox, cc.xy(5, 43));
    splitSearchCorpCheckBox = new JCheckBox();
    splitSearchCorpCheckBox.setSelected(true);
    splitSearchCorpCheckBox.setText("Split in Paragraph of:");
    setupPanel.add(splitSearchCorpCheckBox, cc.xy(7, 43));
    amountSearchCorpSent = new JTextField();
    amountSearchCorpSent.setHorizontalAlignment(2);
    amountSearchCorpSent.setText("20");
    setupPanel.add(amountSearchCorpSent, cc.xyw(9, 43, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label13 = new JLabel();
    label13.setHorizontalAlignment(2);
    label13.setText("Sentences");
    setupPanel.add(label13, cc.xy(15, 43));
    searchCorpComboBox = new JComboBox();
    setupPanel.add(searchCorpComboBox, cc.xyw(1, 47, 5, CellConstraints.DEFAULT, CellConstraints.TOP));
    removeSearchCorpButton = new JButton();
    removeSearchCorpButton.setText("Remove Search Corpus");
    setupPanel.add(removeSearchCorpButton, cc.xy(7, 47));
    final JLabel label14 = new JLabel();
    label14.setText("Select Search Corpus:");
    setupPanel.add(label14, cc.xyw(1, 45, 5));
    final JLabel label15 = new JLabel();
    label15.setText("Arrange your Search Corpus in a Folder. Then add it to the Software. ");
    setupPanel.add(label15, cc.xyw(1, 39, 54));
    final JLabel label16 = new JLabel();
    label16.setText("First update the Index.");
    setupPanel.add(label16, cc.xyw(1, 27, 5));
    final JLabel label17 = new JLabel();
    label17.setText(
            "Then select an Algorithm and train the Software. On the Search Tab you can select the Algorithms to run your semantic searches.");
    setupPanel.add(label17, cc.xyw(1, 31, 54));
    final JLabel label18 = new JLabel();
    label18.setText("Download Language Models:");
    setupPanel.add(label18, cc.xyw(1, 7, 54));
    final JLabel label19 = new JLabel();
    label19.setText("Training Corpora:");
    setupPanel.add(label19, cc.xyw(1, 13, 54));
    final JLabel label20 = new JLabel();
    label20.setText("Search Corpora:");
    setupPanel.add(label20, cc.xyw(1, 37, 54));
    final JLabel label21 = new JLabel();
    label21.setEnabled(true);
    label21.setText(" ");
    setupPanel.add(label21, cc.xy(1, 11));
    final JLabel label22 = new JLabel();
    label22.setText(" ");
    setupPanel.add(label22, cc.xy(1, 35));
    searchDocs = new JPanel();
    searchDocs.setLayout(new FormLayout(
            "left:4dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:277px:noGrow,left:4dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(m;400px):grow,left:4dlu:noGrow,fill:max(m;200px):grow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,top:3dlu:noGrow,center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:243px:grow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:38px:noGrow,top:3dlu:noGrow"));
    searchDocs.setEnabled(true);
    tabbedPane1.addTab("Search", searchDocs);
    final JLabel label23 = new JLabel();
    label23.setText("Choose Semantic Knowledge Algorithm:");
    searchDocs.add(label23, cc.xyw(3, 1, 5));
    final JLabel label24 = new JLabel();
    label24.setText("Enter Search Text or select Search Document:");
    searchDocs.add(label24, cc.xyw(3, 20, 5));
    final JLabel label25 = new JLabel();
    label25.setText("Document Search Results:");
    searchDocs.add(label25, cc.xyw(10, 1, 3));
    final JLabel label26 = new JLabel();
    label26.setText("Selection Metadata:");
    searchDocs.add(label26, cc.xyw(10, 27, 3));
    selectIndexTypeComboBox = new JComboBox();
    searchDocs.add(selectIndexTypeComboBox, cc.xyw(7, 10, 3));
    final JLabel label27 = new JLabel();
    label27.setText("Index Type:");
    searchDocs.add(label27, cc.xy(7, 8));
    final JLabel label28 = new JLabel();
    label28.setText("Termweight:");
    searchDocs.add(label28, cc.xy(7, 12));
    selectTermweightComboBox = new JComboBox();
    searchDocs.add(selectTermweightComboBox, cc.xy(7, 14));
    final JLabel label29 = new JLabel();
    label29.setText("Number of search results:");
    searchDocs.add(label29, cc.xy(7, 16));
    noOfSearchResultsText = new JTextField();
    noOfSearchResultsText.setText("20");
    searchDocs.add(noOfSearchResultsText, cc.xy(7, 18, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JScrollPane scrollPane1 = new JScrollPane();
    searchDocs.add(scrollPane1, cc.xywh(7, 22, 1, 2, CellConstraints.FILL, CellConstraints.FILL));
    searchTextArea = new JTextArea();
    searchTextArea.setLineWrap(true);
    searchTextArea.setText("");
    searchTextArea.setWrapStyleWord(true);
    scrollPane1.setViewportView(searchTextArea);
    selTextRadioButton = new JRadioButton();
    selTextRadioButton.setSelected(true);
    selTextRadioButton.setText("");
    searchDocs.add(selTextRadioButton, cc.xy(5, 22));
    algTextField = new JLabel();
    algTextField.setText("Knowledge Corpus: null");
    searchDocs.add(algTextField, cc.xy(7, 3, CellConstraints.DEFAULT, CellConstraints.FILL));
    selectDocumentButton = new JButton();
    selectDocumentButton.setEnabled(false);
    selectDocumentButton.setText("Select Document");
    searchDocs.add(selectDocumentButton, cc.xy(7, 25));
    selDocRadioButton = new JRadioButton();
    selDocRadioButton.setText("");
    searchDocs.add(selDocRadioButton, cc.xy(5, 25));
    final JLabel label30 = new JLabel();
    label30.setText("Select Corpus to Search:");
    searchDocs.add(label30, cc.xyw(3, 30, 5));
    searchTopCorpRadioButton = new JRadioButton();
    searchTopCorpRadioButton.setSelected(true);
    searchTopCorpRadioButton.setText("Topic Corpus");
    searchDocs.add(searchTopCorpRadioButton, cc.xy(7, 32, CellConstraints.DEFAULT, CellConstraints.TOP));
    searchSearchCorpRadioButton = new JRadioButton();
    searchSearchCorpRadioButton.setSelected(false);
    searchSearchCorpRadioButton.setText("Search Corpus");
    searchDocs.add(searchSearchCorpRadioButton, cc.xy(7, 34, CellConstraints.DEFAULT, CellConstraints.TOP));
    searchButton = new JButton();
    searchButton.setText("Search");
    searchDocs.add(searchButton, cc.xy(7, 36));
    final JScrollPane scrollPane2 = new JScrollPane();
    searchDocs.add(scrollPane2, cc.xywh(10, 30, 3, 7, CellConstraints.FILL, CellConstraints.FILL));
    metadataTextField = new JTextArea();
    metadataTextField.setEditable(false);
    scrollPane2.setViewportView(metadataTextField);
    termTablePane = new JScrollPane();
    termTablePane.setEnabled(true);
    termTablePane.setVerticalScrollBarPolicy(22);
    searchDocs.add(termTablePane, cc.xywh(14, 3, 1, 21, CellConstraints.FILL, CellConstraints.FILL));
    termSearchResTable.setAutoCreateRowSorter(true);
    termSearchResTable.setAutoResizeMode(2);
    termSearchResTable.setFillsViewportHeight(false);
    termSearchResTable.setForeground(new Color(-16777216));
    termTablePane.setViewportView(termSearchResTable);
    docTablePane = new JScrollPane();
    docTablePane.setVerticalScrollBarPolicy(22);
    searchDocs.add(docTablePane, cc.xywh(10, 3, 3, 21, CellConstraints.FILL, CellConstraints.FILL));
    docSearchResTable.setAutoCreateRowSorter(true);
    docTablePane.setViewportView(docSearchResTable);
    final JLabel label31 = new JLabel();
    label31.setText("Term Search Result:");
    searchDocs.add(label31, cc.xy(14, 1));
    searchDocValue = new JLabel();
    searchDocValue.setText("nothing selected");
    searchDocs.add(searchDocValue, cc.xyw(12, 25, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));
    openSearchDocumentButton = new JButton();
    openSearchDocumentButton.setEnabled(false);
    openSearchDocumentButton.setText("Open Search Document");
    searchDocs.add(openSearchDocumentButton, cc.xy(10, 25, CellConstraints.LEFT, CellConstraints.DEFAULT));
}

From source file:com.spirit.cartera.gui.panel.JPAprobacionPagos.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    cbTodos = new JCheckBox();
    cmbEstado = new JComboBox();
    cbProveedor = new JCheckBox();
    txtProveedor = new JTextField();
    btnProveedor = new JButton();
    lblEstado = new JLabel();
    btnConsultar = new JButton();
    cbFiltrarAprobados = new JCheckBox();
    lblTotalAprobado = new JLabel();
    spTblAprobacionPagos = new JScrollPane();
    tblAprobacionPagos = new JTable();
    txtTotalAprobado = new JTextField();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(Sizes.DLUX6), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(Sizes.dluX(250)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(Sizes.DLUX6), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, 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(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.DLUX6) },
            new RowSpec[] { new RowSpec(Sizes.DLUY6), 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.DLUY6),
                    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,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY6) }));

    //---- cbTodos ----
    cbTodos.setText("Todos");
    add(cbTodos, cc.xy(3, 3));//from  w  w w.  j  av a2 s  . c  o  m

    //---- cmbEstado ----
    cmbEstado.setEditable(false);
    cmbEstado.setModel(new DefaultComboBoxModel(new String[] { "TODO", "PRE-APROBADO", "APROBADO" }));
    add(cmbEstado, cc.xy(13, 5));

    //---- cbProveedor ----
    cbProveedor.setText("Proveedor");
    add(cbProveedor, cc.xy(3, 5));
    add(txtProveedor, cc.xy(5, 5));
    add(btnProveedor, cc.xywh(7, 5, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

    //---- lblEstado ----
    lblEstado.setText("Estado:");
    add(lblEstado, cc.xywh(11, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

    //---- btnConsultar ----
    btnConsultar.setText("Consultar");
    add(btnConsultar, cc.xy(17, 5));

    //---- cbFiltrarAprobados ----
    cbFiltrarAprobados.setText("Filtrar Aprobados");
    add(cbFiltrarAprobados, cc.xy(17, 7));

    //---- lblTotalAprobado ----
    lblTotalAprobado.setText("Total Aprobado:");
    add(lblTotalAprobado, cc.xywh(13, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

    //======== spTblAprobacionPagos ========
    {

        //---- tblAprobacionPagos ----
        tblAprobacionPagos.setModel(new DefaultTableModel(
                new Object[][] { { null, null, null, null, null, null, null, null, null, null, null }, },
                new String[] { "Aprobar", "Proveedor", "# Factura", "F. Inicio", "F. Venc.", "Valor", "Saldo",
                        "Abono", "Pre-Abono", "Observaci\u00f3n", "Desaprobar" }) {
            Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class, Object.class,
                    Object.class, Object.class, Object.class, Object.class, Object.class, String.class,
                    Boolean.class };
            boolean[] columnEditable = new boolean[] { true, false, false, false, false, false, false, true,
                    false, true, true };

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

            @Override
            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return columnEditable[columnIndex];
            }
        });
        tblAprobacionPagos.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
        spTblAprobacionPagos.setViewportView(tblAprobacionPagos);
    }
    add(spTblAprobacionPagos, cc.xywh(3, 11, 19, 5));

    //---- txtTotalAprobado ----
    txtTotalAprobado.setEditable(false);
    txtTotalAprobado.setHorizontalAlignment(SwingConstants.RIGHT);
    add(txtTotalAprobado, cc.xywh(15, 17, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}