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

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

Introduction

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

Prototype

Alignment LEFT

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

Click Source Link

Document

Put the component in the left.

Usage

From source file:edu.byu.plugins.editors.ArchDescriptionDatesFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    repositoryInfo = new JPanel();
    label15 = new JLabel();
    dateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_DATE_EXPRESSION));
    Date1Label = new JLabel();
    panel1 = new JPanel();
    label_date1Begin = new JLabel();
    date1Begin = BYU_ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISODATE_BEGIN));
    label_date1End = new JLabel();
    date1End = BYU_ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISODATE_END));
    BulkDatesLabel = new JLabel();
    panel2 = new JPanel();
    label_bulkDateBegin = new JLabel();
    bulkDateBegin = BYU_ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_BEGIN));
    label_bulkDateEnd = new JLabel();
    bulkDateEnd = BYU_ATBasicComponentFactory
            .createISODateField(detailsModel.getModel(ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_END));
    rights = ATBasicComponentFactory.createCheckBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_CERTAINTY,
            ArchDescriptionDates.class);
    label3 = new JLabel();
    extentType = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionDates.PROPERTYNAME_DATE_TYPE, ArchDescriptionDates.class);
    label4 = new JLabel();
    extentType2 = ATBasicComponentFactory.createComboBox(detailsModel, ArchDescriptionDates.PROPERTYNAME_ERA,
            ArchDescriptionDates.class);
    label5 = new JLabel();
    extentType3 = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionDates.PROPERTYNAME_CALENDAR, ArchDescriptionDates.class);
    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"));

    //======== repositoryInfo ========
    {//from ww  w .j ava 2  s  .c om
        repositoryInfo.setBorder(Borders.DLU4_BORDER);
        repositoryInfo.setOpaque(false);
        repositoryInfo.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        repositoryInfo.setBackground(new Color(200, 205, 232));
        repositoryInfo.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec("max(default;400px):grow") },
                new 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 }));

        //---- label15 ----
        label15.setText("Date Expression");
        label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label15, ArchDescriptionDates.class,
                ArchDescriptionDates.PROPERTYNAME_DATE_EXPRESSION);
        repositoryInfo.add(label15, cc.xy(1, 1));

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

        //---- Date1Label ----
        Date1Label.setText("Inclusive Dates");
        Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        repositoryInfo.add(Date1Label, cc.xywh(1, 3, 3, 1));

        //======== panel1 ========
        {
            panel1.setBackground(new Color(200, 205, 232));
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { 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, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_date1Begin ----
            label_date1Begin.setText("Begin");
            label_date1Begin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_date1Begin, ArchDescriptionDates.class,
                    ArchDescriptionDates.PROPERTYNAME_ISODATE_BEGIN);
            panel1.add(label_date1Begin, cc.xy(3, 1));

            //---- date1Begin ----
            date1Begin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(date1Begin, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- label_date1End ----
            label_date1End.setText("End");
            label_date1End.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_date1End, ArchDescriptionDates.class,
                    ArchDescriptionDates.PROPERTYNAME_ISODATE_END);
            panel1.add(label_date1End, cc.xy(7, 1));

            //---- date1End ----
            date1End.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(date1End, new CellConstraints(9, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT,
                    new Insets(0, 0, 0, 5)));
        }
        repositoryInfo.add(panel1, cc.xywh(1, 5, 3, 1));

        //---- BulkDatesLabel ----
        BulkDatesLabel.setText("Bulk Dates");
        BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        repositoryInfo.add(BulkDatesLabel, cc.xywh(1, 7, 3, 1));

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

            //---- label_bulkDateBegin ----
            label_bulkDateBegin.setText("Begin");
            label_bulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_bulkDateBegin, ArchDescriptionDates.class,
                    ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_BEGIN);
            panel2.add(label_bulkDateBegin, cc.xy(3, 1));

            //---- bulkDateBegin ----
            bulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel2.add(bulkDateBegin, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- label_bulkDateEnd ----
            label_bulkDateEnd.setText("End");
            label_bulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_bulkDateEnd, ArchDescriptionDates.class,
                    ArchDescriptionDates.PROPERTYNAME_ISOBULK_DATE_END);
            panel2.add(label_bulkDateEnd, cc.xy(7, 1));

            //---- bulkDateEnd ----
            bulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel2.add(bulkDateEnd, new CellConstraints(9, 1, 1, 1, CellConstraints.FILL,
                    CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
        }
        repositoryInfo.add(panel2, cc.xywh(1, 9, 3, 1));

        //---- rights ----
        rights.setBackground(new Color(231, 188, 251));
        rights.setText("Notification");
        rights.setOpaque(false);
        rights.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights.setText(
                ATFieldInfo.getLabel(ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_CERTAINTY));
        repositoryInfo.add(rights, cc.xywh(1, 11, 3, 1));

        //---- label3 ----
        label3.setText("Date Type");
        ATFieldInfo.assignLabelInfo(label3, ArchDescriptionDates.class,
                ArchDescriptionDates.PROPERTYNAME_DATE_TYPE);
        repositoryInfo.add(label3, cc.xy(1, 13));

        //---- extentType ----
        extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        extentType.setOpaque(false);
        repositoryInfo.add(extentType, new CellConstraints(3, 13, 1, 1, CellConstraints.LEFT,
                CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));

        //---- label4 ----
        label4.setText("Erazzz");
        ATFieldInfo.assignLabelInfo(label4, ArchDescriptionDates.class, ArchDescriptionDates.PROPERTYNAME_ERA);
        repositoryInfo.add(label4, cc.xy(1, 15));

        //---- extentType2 ----
        extentType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        extentType2.setOpaque(false);
        repositoryInfo.add(extentType2, new CellConstraints(3, 15, 1, 1, CellConstraints.LEFT,
                CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));

        //---- label5 ----
        label5.setText("Calendar");
        ATFieldInfo.assignLabelInfo(label5, ArchDescriptionDates.class,
                ArchDescriptionDates.PROPERTYNAME_CALENDAR);
        repositoryInfo.add(label5, cc.xy(1, 17));

        //---- extentType3 ----
        extentType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        extentType3.setOpaque(false);
        repositoryInfo.add(extentType3, new CellConstraints(3, 17, 1, 1, CellConstraints.LEFT,
                CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));
    }
    add(repositoryInfo, cc.xy(1, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.byu.plugins.editors.panels.AccessionsBasicInfoPanel.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel11 = new JPanel();
    panel12 = new JPanel();
    label_accessionNumber1 = new JLabel();
    accessionNumber1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_1));
    accessionNumber2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_2));
    accessionNumber3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_3));
    accessionNumber4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_4));
    panel34 = new JPanel();
    label_accessionDate = new JLabel();
    accessionDate = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_DATE));
    panel2 = new JPanel();
    panel15 = new JPanel();
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    tableAccessionsResources = new DomainSortableTable();
    panel19 = new JPanel();
    linkResource = new JButton();
    removeResourceLink = new JButton();
    panel27 = new JPanel();
    label_resourceType = new JLabel();
    resourceType = ATBasicComponentFactory.createComboBox(detailsModel, Accessions.PROPERTYNAME_RESOURCE_TYPE,
            Accessions.class, 10);
    label_title = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE));
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    physicalDescriptionsTable = new DomainSortableTable(ArchDescriptionPhysicalDescriptions.class);
    panel23 = new JPanel();
    addPhysicalDescription = new JButton();
    removePhysicalDescription = new JButton();
    panel14 = new JPanel();
    label_repositoryName = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel13 = new JPanel();
    label_repositoryName4 = new JLabel();
    scrollPane8 = new JScrollPane();
    dateTable = new DomainSortableTable(ArchDescriptionDates.class);
    panel22 = new JPanel();
    addDate = new JButton();
    removeDate = new JButton();
    label_repositoryName3 = new JLabel();
    scrollPane6 = new JScrollPane();
    deaccessionsTable = new DomainSortableTable(Deaccessions.class);
    panel18 = new JPanel();
    addDeaccessions = new JButton();
    removeDeaccession = new JButton();
    label_repositoryName2 = new JLabel();
    scrollPane7 = new JScrollPane();
    locationsTable = new DomainSortableTable(AccessionsLocations.class);
    panel26 = new JPanel();
    addButton = new JButton();
    removeLocationButton = new JButton();
    label_title2 = new JLabel();
    scrollPane43 = new JScrollPane();
    title2 = ATBasicComponentFactory//from   w w  w. j a v  a  2  s  .co  m
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setMinimumSize(new Dimension(640, 380));
    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) },
            RowSpec.decodeSpecs("fill:default:grow")));
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

    //======== panel11 ========
    {
        panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel11.setBackground(new Color(200, 205, 232));
        panel11.setMinimumSize(new Dimension(200, 206));
        panel11.setPreferredSize(new Dimension(200, 278));
        panel11.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        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 }));

        //======== panel12 ========
        {
            panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.setBackground(new Color(200, 205, 232));
            panel12.setMinimumSize(new Dimension(200, 22));
            panel12.setPreferredSize(new Dimension(200, 22));
            panel12.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow") },
                            RowSpec.decodeSpecs("default")));
            ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

            //---- label_accessionNumber1 ----
            label_accessionNumber1.setText("Accession No.");
            label_accessionNumber1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_accessionNumber1, Accessions.class,
                    Accessions.PROPERTYNAME_ACCESSION_NUMBER);
            panel12.add(label_accessionNumber1,
                    cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- accessionNumber1 ----
            accessionNumber1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(accessionNumber1, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

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

        //======== panel34 ========
        {
            panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel34.setBackground(new Color(200, 205, 232));
            panel34.setPreferredSize(new Dimension(200, 22));
            panel34.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                            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) },
                    RowSpec.decodeSpecs("default")));

            //---- label_accessionDate ----
            label_accessionDate.setText("Accession Date");
            label_accessionDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_accessionDate, Accessions.class,
                    Accessions.PROPERTYNAME_ACCESSION_DATE);
            panel34.add(label_accessionDate, cc.xy(1, 1));

            //---- accessionDate ----
            accessionDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            accessionDate.setColumns(10);
            panel34.add(accessionDate, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel11.add(panel34, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

        //======== panel2 ========
        {
            panel2.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel2.setBackground(new Color(182, 187, 212));
            panel2.setMinimumSize(new Dimension(200, 92));
            panel2.setPreferredSize(new Dimension(200, 119));
            panel2.setLayout(new FormLayout("default:grow", "fill:default:grow"));

            //======== panel15 ========
            {
                panel15.setOpaque(false);
                panel15.setBorder(Borders.DLU2_BORDER);
                panel15.setMinimumSize(new Dimension(200, 88));
                panel15.setPreferredSize(new Dimension(200, 115));
                panel15.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- OtherAccessionsLabel ----
                OtherAccessionsLabel.setText("Resources Linked to this accession");
                OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel15.add(OtherAccessionsLabel, cc.xy(1, 1));

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

                    //---- tableAccessionsResources ----
                    tableAccessionsResources.setPreferredScrollableViewportSize(new Dimension(450, 50));
                    tableAccessionsResources.setFocusable(false);
                    tableAccessionsResources.setSelectionBackground(Color.magenta);
                    scrollPane4.setViewportView(tableAccessionsResources);
                }
                panel15.add(scrollPane4, cc.xy(1, 3));

                //======== panel19 ========
                {
                    panel19.setOpaque(false);
                    panel19.setMinimumSize(new Dimension(100, 29));
                    panel19.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- linkResource ----
                    linkResource.setText("Link Resource");
                    linkResource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    linkResource.setOpaque(false);
                    linkResource.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkResourceActionPerformed(e);
                        }
                    });
                    panel19.add(linkResource, cc.xy(1, 1));

                    //---- removeResourceLink ----
                    removeResourceLink.setText("Remove Link");
                    removeResourceLink.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeResourceLink.setOpaque(false);
                    removeResourceLink.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeResourceLinkActionPerformed(e);
                        }
                    });
                    panel19.add(removeResourceLink, cc.xy(3, 1));
                }
                panel15.add(panel19, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            panel2.add(panel15, cc.xy(1, 1));
        }
        panel11.add(panel2, cc.xy(1, 5));

        //======== panel27 ========
        {
            panel27.setOpaque(false);
            panel27.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_resourceType ----
            label_resourceType.setText("Resource Type");
            label_resourceType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourceType, Accessions.class,
                    Accessions.PROPERTYNAME_RESOURCE_TYPE);
            panel27.add(label_resourceType, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- resourceType ----
            resourceType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourceType.setOpaque(false);
            panel27.add(resourceType, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel11.add(panel27, cc.xy(1, 7));

        //---- label_title ----
        label_title.setText("Title");
        label_title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_title, Accessions.class, Accessions.PROPERTYNAME_TITLE);
        panel11.add(label_title, cc.xy(1, 9));

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

            //---- title ----
            title.setRows(4);
            title.setLineWrap(true);
            title.setWrapStyleWord(true);
            title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane42.setViewportView(title);
        }
        panel11.add(scrollPane42, cc.xy(1, 11));

        //---- label_repositoryName5 ----
        label_repositoryName5.setText("Physical Description");
        label_repositoryName5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel11.add(label_repositoryName5, cc.xy(1, 13));

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

            //---- physicalDescriptionsTable ----
            physicalDescriptionsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            physicalDescriptionsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    physicalDescriptionMouseClicked(e);
                }
            });
            scrollPane9.setViewportView(physicalDescriptionsTable);
        }
        panel11.add(scrollPane9, cc.xywh(1, 15, 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[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

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

            //---- removePhysicalDescription ----
            removePhysicalDescription.setText("Remove Description");
            removePhysicalDescription.setOpaque(false);
            removePhysicalDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removePhysicalDescription.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removePhysicalDescriptionActionPerformed();
                }
            });
            panel23.add(removePhysicalDescription, cc.xy(3, 1));
        }
        panel11.add(panel23, cc.xywh(1, 17, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //======== panel14 ========
        {
            panel14.setOpaque(false);
            panel14.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("default")));

            //---- label_repositoryName ----
            label_repositoryName.setText("Repository");
            label_repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_repositoryName, Accessions.class,
                    Accessions.PROPERTYNAME_REPOSITORY);
            panel14.add(label_repositoryName, cc.xy(1, 1));

            //---- repositoryName ----
            repositoryName.setEditable(false);
            repositoryName.setFocusable(false);
            repositoryName.setBorder(null);
            repositoryName.setOpaque(false);
            repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            repositoryName.setHorizontalAlignment(SwingConstants.LEFT);
            panel14.add(repositoryName, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- changeRepositoryButton ----
            changeRepositoryButton.setText("Change Repository");
            changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeRepositoryButton.setOpaque(false);
            changeRepositoryButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeRepositoryButtonActionPerformed();
                }
            });
            panel14.add(changeRepositoryButton, cc.xy(5, 1));
        }
        panel11.add(panel14, cc.xy(1, 19));
    }
    add(panel11, cc.xy(1, 1));

    //======== panel13 ========
    {
        panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.setBackground(new Color(200, 205, 232));
        panel13.setPreferredSize(new Dimension(200, 317));
        panel13.setLayout(new FormLayout(ColumnSpec.decodeSpecs("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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4), FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.19999999999999998) }));
        ((FormLayout) panel13.getLayout()).setRowGroups(new int[][] { { 9, 15, 21 } });

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

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

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

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

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

            //---- removeDate ----
            removeDate.setText("Remove Date");
            removeDate.setOpaque(false);
            removeDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDate.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDateActionPerformed(e);
                }
            });
            panel22.add(removeDate, cc.xy(3, 1));
        }
        panel13.add(panel22, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_repositoryName3 ----
        label_repositoryName3.setText("Deaccessions");
        label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.add(label_repositoryName3, cc.xy(1, 7));

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

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

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

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

            //---- removeDeaccession ----
            removeDeaccession.setText("Remove Deaccession");
            removeDeaccession.setOpaque(false);
            removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDeaccession.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDeaccessionActionPerformed();
                }
            });
            panel18.add(removeDeaccession, cc.xy(3, 1));
        }
        panel13.add(panel18, cc.xywh(1, 11, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_repositoryName2 ----
        label_repositoryName2.setText("Locations");
        label_repositoryName2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_repositoryName2, Accessions.class, Accessions.PROPERTYNAME_LOCATIONS);
        panel13.add(label_repositoryName2, cc.xy(1, 13));

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

            //---- locationsTable ----
            locationsTable.setPreferredScrollableViewportSize(new Dimension(200, 60));
            locationsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    locationsTableMouseClicked(e);
                }
            });
            scrollPane7.setViewportView(locationsTable);
        }
        panel13.add(scrollPane7, cc.xywh(1, 15, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

            //---- removeLocationButton ----
            removeLocationButton.setText("Remove Location");
            removeLocationButton.setOpaque(false);
            removeLocationButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeLocationButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeLocationButtonActionPerformed(e);
                }
            });
            panel26.add(removeLocationButton, cc.xy(3, 1));
        }
        panel13.add(panel26, cc.xywh(1, 17, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_title2 ----
        label_title2.setText("General accession note");
        label_title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_title2, Accessions.class,
                Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE);
        panel13.add(label_title2, cc.xy(1, 19));

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

            //---- title2 ----
            title2.setRows(4);
            title2.setLineWrap(true);
            title2.setWrapStyleWord(true);
            title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane43.setViewportView(title2);
        }
        panel13.add(scrollPane43, cc.xy(1, 21));
    }
    add(panel13, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.byu.plugins.editors.panels.DigitalObjectBasicInfoPanel.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel16 = new JPanel();
    panel1 = new JPanel();
    label_resourcesLanguageCode4 = new JLabel();
    label = ATBasicComponentFactory.createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_LABEL),
            false);//from   w w w.  j  av  a 2 s . c o  m
    panel19 = new JPanel();
    label_resourcesTitle = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE),
            false);
    resourcesPanel = new JPanel();
    resourcesLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    resourcesTable = new DomainSortableTable();
    panel13 = new JPanel();
    panel17 = new JPanel();
    label_repositoryName4 = new JLabel();
    scrollPane8 = new JScrollPane();
    dateTable = new DomainSortableTable(ArchDescriptionDates.class);
    panel22 = new JPanel();
    addDate = new JButton();
    removeDate = new JButton();
    digitalObjectResourceRecordOnly = new JPanel();
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, DigitalObjects.class);
    label_resourcesLanguageCode3 = new JLabel();
    objectType = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_OBJECT_TYPE,
            DigitalObjects.class);
    actuateLabel2 = new JLabel();
    scrollPane43 = new JScrollPane();
    title2 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(DigitalObjects.PROPERTYNAME_METS_IDENTIFIER), false);
    actuateLabel = new JLabel();
    actuate = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_ACTUATE,
            DigitalObjects.class);
    showLabel = new JLabel();
    show = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_SHOW,
            DigitalObjects.class);
    componentIDPanel = new JPanel();
    componentLabel1 = new JLabel();
    dateExpression2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_COMPONENT_ID), false);
    panel5 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    languageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            DigitalObjects.PROPERTYNAME_LANGUAGE_CODE, DigitalObjects.class);
    repositoryPanel = new JPanel();
    label_repositoryName = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel2 = new JPanel();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    fileVersionsTable = new DomainSortableTable(FileVersions.class,
            FileVersions.PROPERTYNAME_FILE_VERSIONS_USE_STATEMENT);
    panel29 = new JPanel();
    addFileVersionButton = new JButton();
    removeFileVersionButton = new JButton();
    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) },
            new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

    //======== panel16 ========
    {
        panel16.setOpaque(false);
        panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.30000000000000004) }));

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

            //---- label_resourcesLanguageCode4 ----
            label_resourcesLanguageCode4.setText("Label");
            label_resourcesLanguageCode4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode4, DigitalObjects.class,
                    DigitalObjects.PROPERTYNAME_LABEL);
            panel1.add(label_resourcesLanguageCode4, cc.xy(1, 1));

            //---- label ----
            label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(label, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP,
                    new Insets(0, 0, 0, 5)));
        }
        panel16.add(panel1, cc.xy(1, 1));

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

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

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

                //---- title ----
                title.setRows(4);
                title.setLineWrap(true);
                title.setWrapStyleWord(true);
                title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                scrollPane42.setViewportView(title);
            }
            panel19.add(scrollPane42, cc.xywh(1, 3, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

                //---- resourcesLabel ----
                resourcesLabel.setText("Resource Linked to this Digital Object");
                resourcesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                resourcesPanel.add(resourcesLabel, cc.xy(1, 1));

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

                    //---- resourcesTable ----
                    resourcesTable.setPreferredScrollableViewportSize(new Dimension(300, 100));
                    resourcesTable.setFocusable(false);
                    scrollPane4.setViewportView(resourcesTable);
                }
                resourcesPanel.add(scrollPane4,
                        cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            panel19.add(resourcesPanel, cc.xywh(1, 5, 3, 1));
        }
        panel16.add(panel19, cc.xy(1, 3));
    }
    add(panel16, cc.xy(1, 1));

    //======== panel13 ========
    {
        panel13.setOpaque(false);
        panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.setLayout(new FormLayout("left:default:grow", "fill:default:grow"));

        //======== panel17 ========
        {
            panel17.setOpaque(false);
            panel17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel17.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW) }));

            //---- label_repositoryName4 ----
            label_repositoryName4.setText("Dates");
            label_repositoryName4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel17.add(label_repositoryName4, cc.xy(1, 1));

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

                //---- dateTable ----
                dateTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
                dateTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        dateTableMouseClicked(e);
                    }
                });
                scrollPane8.setViewportView(dateTable);
            }
            panel17.add(scrollPane8, cc.xy(1, 3));

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

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

                //---- removeDate ----
                removeDate.setText("Remove Date");
                removeDate.setOpaque(false);
                removeDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeDate.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeDateActionPerformed(e);
                    }
                });
                panel22.add(removeDate, cc.xy(3, 1));
            }
            panel17.add(panel22, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //======== digitalObjectResourceRecordOnly ========
            {
                digitalObjectResourceRecordOnly.setOpaque(false);
                digitalObjectResourceRecordOnly.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_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,
                                new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- restrictionsApply ----
                restrictionsApply.setBackground(new Color(231, 188, 251));
                restrictionsApply.setText("Restrictions Apply");
                restrictionsApply.setOpaque(false);
                restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply.setText(ATFieldInfo.getLabel(DigitalObjects.class,
                        ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
                digitalObjectResourceRecordOnly.add(restrictionsApply, cc.xywh(1, 1, 3, 1));

                //---- label_resourcesLanguageCode3 ----
                label_resourcesLanguageCode3.setText("Object Type");
                label_resourcesLanguageCode3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode3, DigitalObjects.class,
                        DigitalObjects.PROPERTYNAME_OBJECT_TYPE);
                digitalObjectResourceRecordOnly.add(label_resourcesLanguageCode3, cc.xy(1, 3));

                //---- objectType ----
                objectType.setMaximumSize(new Dimension(50, 27));
                objectType.setOpaque(false);
                objectType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                digitalObjectResourceRecordOnly.add(objectType,
                        cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- actuateLabel2 ----
                actuateLabel2.setText("Digital Object ID");
                actuateLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(actuateLabel2, DigitalObjects.class,
                        DigitalObjects.PROPERTYNAME_METS_IDENTIFIER);
                digitalObjectResourceRecordOnly.add(actuateLabel2, cc.xy(1, 5));

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

                    //---- title2 ----
                    title2.setRows(3);
                    title2.setLineWrap(true);
                    title2.setWrapStyleWord(true);
                    title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane43.setViewportView(title2);
                }
                digitalObjectResourceRecordOnly.add(scrollPane43,
                        cc.xywh(3, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- actuateLabel ----
                actuateLabel.setText("EAD DAO Actuate");
                actuateLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(actuateLabel, DigitalObjects.class,
                        DigitalObjects.PROPERTYNAME_EAD_DAO_ACTUATE);
                digitalObjectResourceRecordOnly.add(actuateLabel, cc.xy(1, 7));

                //---- actuate ----
                actuate.setOpaque(false);
                actuate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                digitalObjectResourceRecordOnly.add(actuate,
                        cc.xywh(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- showLabel ----
                showLabel.setText("EAD DAO Show");
                showLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(showLabel, DigitalObjects.class,
                        DigitalObjects.PROPERTYNAME_EAD_DAO_SHOW);
                digitalObjectResourceRecordOnly.add(showLabel, cc.xy(1, 9));

                //---- show ----
                show.setOpaque(false);
                show.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                digitalObjectResourceRecordOnly.add(show,
                        cc.xywh(3, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //======== componentIDPanel ========
                {
                    componentIDPanel.setBackground(new Color(200, 205, 232));
                    componentIDPanel
                            .setLayout(new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(
                                                    ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default")));

                    //---- componentLabel1 ----
                    componentLabel1.setText("Component ID");
                    componentLabel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(componentLabel1, DigitalObjects.class,
                            DigitalObjects.PROPERTYNAME_COMPONENT_ID);
                    componentIDPanel.add(componentLabel1, cc.xy(1, 1));

                    //---- dateExpression2 ----
                    dateExpression2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    componentIDPanel.add(dateExpression2, cc.xy(3, 1));
                }
                digitalObjectResourceRecordOnly.add(componentIDPanel, cc.xywh(1, 11, 3, 1));
            }
            panel17.add(digitalObjectResourceRecordOnly, cc.xy(1, 7));
        }
        panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel13, cc.xy(3, 1));

    //======== panel5 ========
    {
        panel5.setOpaque(false);
        panel5.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));

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

        //---- languageCode ----
        languageCode.setMaximumSize(new Dimension(50, 27));
        languageCode.setOpaque(false);
        languageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel5.add(languageCode, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //======== repositoryPanel ========
        {
            repositoryPanel.setOpaque(false);
            repositoryPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(44)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("default")));

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

            //---- repositoryName ----
            repositoryName.setEditable(false);
            repositoryName.setFocusable(false);
            repositoryName.setBorder(null);
            repositoryName.setOpaque(false);
            repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            repositoryName.setHorizontalAlignment(SwingConstants.LEFT);
            repositoryPanel.add(repositoryName,
                    cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- changeRepositoryButton ----
            changeRepositoryButton.setText("Change Repository");
            changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeRepositoryButton.setOpaque(false);
            changeRepositoryButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeRepositoryButtonActionPerformed();
                }
            });
            repositoryPanel.add(changeRepositoryButton, cc.xy(5, 1));
        }
        panel5.add(repositoryPanel, cc.xywh(1, 3, 3, 1));
    }
    add(panel5, cc.xywh(1, 3, 3, 1));

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

        //---- label1 ----
        label1.setText("File Versions");
        label1.setForeground(new Color(0, 0, 102));
        label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label1, DigitalObjects.class, DigitalObjects.PROPERTYNAME_FILE_VERSIONS);
        panel2.add(label1, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT,
                new Insets(5, 5, 0, 0)));

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

            //---- fileVersionsTable ----
            fileVersionsTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
            fileVersionsTable.setRowHeight(20);
            fileVersionsTable.setFocusable(false);
            fileVersionsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    fileVersionTableMouseClicked(e);
                }
            });
            scrollPane6.setViewportView(fileVersionsTable);
        }
        panel2.add(scrollPane6, new CellConstraints(1, 3, 1, 1, CellConstraints.DEFAULT,
                CellConstraints.DEFAULT, new Insets(0, 10, 0, 5)));

        //======== 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[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

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

            //---- removeFileVersionButton ----
            removeFileVersionButton.setText("Remove File Version");
            removeFileVersionButton.setOpaque(false);
            removeFileVersionButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeFileVersionButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeFileVersionButtonActionPerformed();
                }
            });
            panel29.add(removeFileVersionButton, cc.xy(3, 1));
        }
        panel2.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
    }
    add(panel2, cc.xywh(1, 5, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.byu.plugins.editors.panels.ResourceBasicInfoPanel.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel16 = new JPanel();
    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_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));
    label_repositoryName4 = new JLabel();
    scrollPane8 = new JScrollPane();
    dateTable = new DomainSortableTable(ArchDescriptionDates.class);
    panel22 = new JPanel();
    addDate = new JButton();
    removeDate = new JButton();
    panel1 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class);
    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();
    panel17 = 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));
    panel42 = new JPanel();
    panel43 = new JPanel();
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    accessionsTable = new DomainSortableTable();
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    physicalDescriptionsTable = new DomainSortableTable(ArchDescriptionPhysicalDescriptions.class);
    panel23 = new JPanel();
    addPhysicalDescription = new JButton();
    removePhysicalDescription = new JButton();
    panel39 = new JPanel();
    panel40 = new JPanel();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel29 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    panel2 = new JPanel();
    restrictionsApply2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Resources.PROPERTYNAME_INTERNAL_ONLY, Resources.class);
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    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")));

    //======== panel16 ========
    {//from w  ww .  j  av a  2 s  . c  o  m
        panel16.setOpaque(false);
        panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel16.setBorder(Borders.DLU2_BORDER);
        panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { new RowSpec(RowSpec.FILL, 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(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

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

            //---- 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(1, 3));

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

            //---- 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);
            panel19.add(label_resourcesTitle, cc.xywh(1, 5, 3, 1));

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

                //---- resourcesTitle ----
                resourcesTitle.setRows(4);
                resourcesTitle.setLineWrap(true);
                resourcesTitle.setWrapStyleWord(true);
                resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                scrollPane2.setViewportView(resourcesTitle);
            }
            panel19.add(scrollPane2, cc.xywh(1, 7, 3, 1));

            //======== 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));
            }
            panel19.add(tagApplicatorPanel, cc.xywh(1, 9, 3, 1));
        }
        panel16.add(panel19, cc.xy(1, 1));

        //---- label_repositoryName4 ----
        label_repositoryName4.setText("Dates");
        label_repositoryName4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel16.add(label_repositoryName4, cc.xy(1, 3));

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

            //---- dateTable ----
            dateTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            dateTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    dateTableMouseClicked(e);
                }
            });
            scrollPane8.setViewportView(dateTable);
        }
        panel16.add(scrollPane8, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

            //---- removeDate ----
            removeDate.setText("Remove Date");
            removeDate.setOpaque(false);
            removeDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDate.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDateActionPerformed(e);
                }
            });
            panel22.add(removeDate, cc.xy(3, 1));
        }
        panel16.add(panel22, cc.xywh(1, 7, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //======== panel1 ========
        {
            panel1.setOpaque(false);
            panel1.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec("left:min(default;200px)") },
                            RowSpec.decodeSpecs("default")));

            //---- 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);
            panel1.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));
            panel1.add(resourcesLanguageCode,
                    cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel16.add(panel1, cc.xy(1, 9));

        //---- 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);
        panel16.add(label_resourcesLanguageNote, cc.xy(1, 11));

        //======== 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);
        }
        panel16.add(scrollPane423, cc.xy(1, 13));

        //======== 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) },
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));

            //---- 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 Repository");
            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(3, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        panel16.add(panel6, cc.xy(1, 15));
    }
    add(panel16, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

    //======== panel13 ========
    {
        panel13.setOpaque(false);
        panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.setBorder(Borders.DLU2_BORDER);
        panel13.setLayout(new FormLayout("default:grow", "fill:default:grow"));

        //======== panel17 ========
        {
            panel17.setOpaque(false);
            panel17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel17.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    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.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_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[] { 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),
                                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));
            }
            panel17.add(panel12, cc.xy(1, 1));

            //======== panel42 ========
            {
                panel42.setBorder(new BevelBorder(BevelBorder.LOWERED));
                panel42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel42.setBackground(new Color(182, 187, 212));
                panel42.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.RELATED_GAP_ROWSPEC }));

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

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

                    //======== 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);
                    }
                    panel43.add(scrollPane4,
                            cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                }
                panel42.add(panel43, cc.xy(1, 1));
            }
            panel17.add(panel42, cc.xy(1, 3));

            //---- label_repositoryName5 ----
            label_repositoryName5.setText("Physical Description");
            label_repositoryName5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel17.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));

                //---- physicalDescriptionsTable ----
                physicalDescriptionsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
                physicalDescriptionsTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        physicalDescriptionMouseClicked(e);
                    }
                });
                scrollPane9.setViewportView(physicalDescriptionsTable);
            }
            panel17.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[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

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

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

            //======== panel39 ========
            {
                panel39.setBorder(new BevelBorder(BevelBorder.LOWERED));
                panel39.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel39.setBackground(new Color(182, 187, 212));
                panel39.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.RELATED_GAP_ROWSPEC }));

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

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

                    //======== 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);
                    }
                    panel40.add(scrollPane6,
                            cc.xywh(1, 3, 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[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                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));
                    }
                    panel40.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
                }
                panel39.add(panel40, cc.xy(1, 1));
            }
            panel17.add(panel39, cc.xywh(1, 11, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

                //---- restrictionsApply2 ----
                restrictionsApply2.setText("Internal Only");
                restrictionsApply2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply2.setOpaque(false);
                restrictionsApply2
                        .setText(ATFieldInfo.getLabel(Resources.class, Resources.PROPERTYNAME_INTERNAL_ONLY));
                panel2.add(restrictionsApply2, cc.xy(1, 1));

                //---- 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));
                panel2.add(restrictionsApply, cc.xy(3, 1));
            }
            panel17.add(panel2, cc.xy(1, 13));
        }
        panel13.add(panel17, cc.xywh(1, 1, 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:edu.byu.plugins.editors.panels.ResourceComponentBasicInfoPanel.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel7 = new JPanel();
    panel3 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LEVEL, ResourcesComponents.class);
    panel12 = new JPanel();
    label3 = new JLabel();
    resourcesDateBegin2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_PERSISTENT_ID));
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_OTHER_LEVEL), false);
    label_resourcesTitle = new JLabel();
    scrollPane42 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    label_repositoryName4 = new JLabel();
    scrollPane8 = new JScrollPane();
    dateTable = new DomainSortableTable(ArchDescriptionDates.class);
    panel22 = new JPanel();
    addDate = new JButton();
    removeDate = new JButton();
    panel9 = new JPanel();
    label_resourcesLanguageCode2 = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LANGUAGE_CODE, ResourcesComponents.class);
    panel23 = new JPanel();
    label_resourcesLanguageNote2 = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory.createTextArea(
            detailsModel.getModel(ResourcesComponents.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    separator2 = new JSeparator();
    panel10 = new JPanel();
    panel1 = new JPanel();
    label_resourcesLevel2 = new JLabel();
    subdivisionIdentifier = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_UNIQUE_IDENTIFIER), false);
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    physicalDescriptionsTable = new DomainSortableTable(ArchDescriptionPhysicalDescriptions.class);
    panel24 = new JPanel();
    addPhysicalDescription = new JButton();
    removePhysicalDescription = new JButton();
    panel2 = new JPanel();
    panel6 = new JPanel();
    label1 = new JLabel();
    scrollPane4 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel13 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    panel4 = new JPanel();
    restrictionsApply2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_INTERNAL_ONLY, ResourcesComponents.class);
    resourcesRestrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, ResourcesComponents.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    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")));

    //======== panel7 ========
    {//from w w  w.j  a  v a  2  s. co  m
        panel7.setOpaque(false);
        panel7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel7.setBorder(Borders.DLU2_BORDER);
        panel7.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        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.DEFAULT, FormSpec.DEFAULT_GROW) }));

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

            //---- label_resourcesLevel ----
            label_resourcesLevel.setText("Level");
            label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLevel, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_LEVEL);
            panel3.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();
                }
            });
            panel3.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

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

                //---- label3 ----
                label3.setText("Persistent ID");
                label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label3, ResourcesComponents.class,
                        ResourcesComponents.PROPERTYNAME_PERSISTENT_ID);
                panel12.add(label3, cc.xy(1, 1));

                //---- resourcesDateBegin2 ----
                resourcesDateBegin2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                resourcesDateBegin2.setEditable(false);
                resourcesDateBegin2.setOpaque(false);
                panel12.add(resourcesDateBegin2, cc.xy(3, 1));
            }
            panel3.add(panel12, cc.xy(5, 1));

            //---- label_otherLevel ----
            label_otherLevel.setText("Other Level");
            label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_otherLevel, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_OTHER_LEVEL);
            panel3.add(label_otherLevel, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- resourcesOtherLevel ----
            resourcesOtherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel3.add(resourcesOtherLevel, cc.xywh(3, 3, 3, 1));

            //---- label_resourcesTitle ----
            label_resourcesTitle.setText("Title");
            label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesTitle, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_TITLE);
            panel3.add(label_resourcesTitle, cc.xywh(1, 5, 5, 1));

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

                //---- resourcesTitle ----
                resourcesTitle.setRows(4);
                resourcesTitle.setLineWrap(true);
                resourcesTitle.setWrapStyleWord(true);
                resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                scrollPane42.setViewportView(resourcesTitle);
            }
            panel3.add(scrollPane42, cc.xywh(1, 7, 5, 1));

            //======== 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));
            }
            panel3.add(tagApplicatorPanel, cc.xywh(1, 9, 5, 1));
        }
        panel7.add(panel3, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //---- label_repositoryName4 ----
        label_repositoryName4.setText("Dates");
        label_repositoryName4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel7.add(label_repositoryName4, cc.xy(1, 3));

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

            //---- dateTable ----
            dateTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            dateTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    dateTableMouseClicked(e);
                }
            });
            scrollPane8.setViewportView(dateTable);
        }
        panel7.add(scrollPane8, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

            //---- removeDate ----
            removeDate.setText("Remove Date");
            removeDate.setOpaque(false);
            removeDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDate.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDateActionPerformed(e);
                }
            });
            panel22.add(removeDate, cc.xy(3, 1));
        }
        panel7.add(panel22, cc.xywh(1, 7, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //======== panel9 ========
        {
            panel9.setOpaque(false);
            panel9.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:min(default;200px)") },
                    RowSpec.decodeSpecs("default")));

            //---- label_resourcesLanguageCode2 ----
            label_resourcesLanguageCode2.setText("Lanaguage");
            label_resourcesLanguageCode2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode2, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_LANGUAGE_CODE);
            panel9.add(label_resourcesLanguageCode2, cc.xy(1, 1));

            //---- resourcesLanguageCode ----
            resourcesLanguageCode.setMaximumSize(new Dimension(150, 32767));
            resourcesLanguageCode.setOpaque(false);
            resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel9.add(resourcesLanguageCode,
                    cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel7.add(panel9, cc.xy(1, 9));

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

            //---- label_resourcesLanguageNote2 ----
            label_resourcesLanguageNote2.setText("Repository Processing Note");
            label_resourcesLanguageNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote2, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE);
            panel23.add(label_resourcesLanguageNote2, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT,
                    CellConstraints.DEFAULT, new Insets(0, 10, 0, 0)));

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

                //---- resourcesLanguageNote ----
                resourcesLanguageNote.setRows(4);
                resourcesLanguageNote.setWrapStyleWord(true);
                resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                scrollPane423.setViewportView(resourcesLanguageNote);
            }
            panel23.add(scrollPane423, new CellConstraints(1, 3, 1, 1, CellConstraints.DEFAULT,
                    CellConstraints.DEFAULT, new Insets(0, 10, 0, 0)));
        }
        panel7.add(panel23, cc.xy(1, 11));
    }
    add(panel7, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

    //======== panel10 ========
    {
        panel10.setOpaque(false);
        panel10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel10.setBorder(Borders.DLU2_BORDER);
        panel10.setLayout(new FormLayout(ColumnSpec.decodeSpecs("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.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW), FormFactory.LINE_GAP_ROWSPEC,
                FormFactory.DEFAULT_ROWSPEC }));

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

            //---- label_resourcesLevel2 ----
            label_resourcesLevel2.setText("Component Unique Identifier");
            label_resourcesLevel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourcesLevel2, ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_UNIQUE_IDENTIFIER);
            panel1.add(label_resourcesLevel2,
                    cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- subdivisionIdentifier ----
            subdivisionIdentifier.setColumns(5);
            subdivisionIdentifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(subdivisionIdentifier,
                    cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
        }
        panel10.add(panel1, cc.xy(1, 1));

        //---- label_repositoryName5 ----
        label_repositoryName5.setText("Physical Description");
        label_repositoryName5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel10.add(label_repositoryName5, cc.xy(1, 3));

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

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

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

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

            //---- removePhysicalDescription ----
            removePhysicalDescription.setText("Remove Description");
            removePhysicalDescription.setOpaque(false);
            removePhysicalDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removePhysicalDescription.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removePhysicalDescriptionActionPerformed();
                }
            });
            panel24.add(removePhysicalDescription, cc.xy(3, 1));
        }
        panel10.add(panel24, cc.xywh(1, 7, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

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

            //======== panel6 ========
            {
                panel6.setOpaque(false);
                panel6.setBorder(Borders.DLU2_BORDER);
                panel6.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- label1 ----
                label1.setText("Instances");
                label1.setForeground(new Color(0, 0, 102));
                label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label1, ResourcesComponents.class,
                        ResourcesComponents.PROPERTYNAME_INSTANCES);
                panel6.add(label1, cc.xywh(1, 1, 2, 1));

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

                    //---- instancesTable ----
                    instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
                    instancesTable.setRowHeight(20);
                    instancesTable.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseClicked(MouseEvent e) {
                            instancesTableMouseClicked(e);
                        }
                    });
                    scrollPane4.setViewportView(instancesTable);
                }
                panel6.add(scrollPane4, cc.xy(2, 3));

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

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

                    //---- removeInstanceButton ----
                    removeInstanceButton.setBackground(new Color(231, 188, 251));
                    removeInstanceButton.setText("Remove Instance");
                    removeInstanceButton.setOpaque(false);
                    removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeInstanceButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeInstanceButtonActionPerformed();
                        }
                    });
                    panel13.add(removeInstanceButton, cc.xy(3, 1));
                }
                panel6.add(panel13, cc.xywh(1, 5, 2, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            panel2.add(panel6, cc.xy(1, 1));
        }
        panel10.add(panel2, cc.xy(1, 9));

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

            //---- restrictionsApply2 ----
            restrictionsApply2.setBackground(new Color(231, 188, 251));
            restrictionsApply2.setText("Internal Only");
            restrictionsApply2.setOpaque(false);
            restrictionsApply2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            restrictionsApply2.setText(ATFieldInfo.getLabel(ResourcesComponents.class,
                    ResourcesComponents.PROPERTYNAME_INTERNAL_ONLY));
            panel4.add(restrictionsApply2, cc.xy(1, 1));

            //---- resourcesRestrictionsApply ----
            resourcesRestrictionsApply.setBackground(new Color(231, 188, 251));
            resourcesRestrictionsApply.setText("Restrictions Apply");
            resourcesRestrictionsApply.setOpaque(false);
            resourcesRestrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourcesRestrictionsApply.setText(ATFieldInfo.getLabel(ResourcesComponents.class,
                    ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
            panel4.add(resourcesRestrictionsApply, cc.xy(3, 1));
        }
        panel10.add(panel4, cc.xy(1, 11));
    }
    add(panel10, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.yale.plugins.instanceEditor.YaleAnalogInstancesFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_subjectTermType = new JLabel();
    container1Type = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_TYPE, ArchDescriptionAnalogInstances.class);
    label_subjectSource5 = new JLabel();
    containerLabel4 = ATBasicComponentFactory.createTextField(
            detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_INDICATOR));
    label_subjectSource4 = new JLabel();
    containerLabel3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE));
    separator1 = new JSeparator();
    label_subjectTermType2 = new JLabel();
    container2Type = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_TYPE, ArchDescriptionAnalogInstances.class);
    label_subjectSource6 = new JLabel();
    containerLabel5 = ATBasicComponentFactory.createTextField(
            detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_INDICATOR));
    separator3 = new JSeparator();
    label_subjectTermType3 = new JLabel();
    container3Type = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE, ArchDescriptionAnalogInstances.class);
    label_subjectSource7 = new JLabel();
    containerLabel6 = ATBasicComponentFactory.createTextField(
            detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_INDICATOR));
    separator2 = new JSeparator();
    label_subjectTerm2 = new JLabel();
    containerLabel2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_LOCATION_LABEL));
    label_date1Begin6 = new JLabel();
    dateExpression2 = ATBasicComponentFactory.createTextField(
            detailsModel.getModel(ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING1), false);
    label_date1Begin7 = new JLabel();
    container3Type2 = ATBasicComponentFactory.createComboBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING2,
            LookupListUtils.getLookupListValues(ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE));
    panel1 = new JPanel();
    rights3 = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN1,
            ArchDescriptionAnalogInstances.class);
    rights2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN2,
            ArchDescriptionAnalogInstances.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);//from www  .j  av a  2 s  .c o m
    setBackground(new Color(234, 201, 250));
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;400px):grow") },
            new 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, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

    //---- label_subjectTermType ----
    label_subjectTermType.setText("Container 1 Type");
    label_subjectTermType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTermType, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_TYPE);
    add(label_subjectTermType, cc.xy(1, 1));

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

    //---- label_subjectSource5 ----
    label_subjectSource5.setText("Container 1 Indicator");
    label_subjectSource5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectSource5, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_INDICATOR);
    add(label_subjectSource5, cc.xy(1, 3));

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

    //---- label_subjectSource4 ----
    label_subjectSource4.setText("Barcode");
    label_subjectSource4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectSource4, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE);
    add(label_subjectSource4, cc.xy(1, 5));

    //---- containerLabel3 ----
    containerLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(containerLabel3, cc.xy(3, 5));

    //---- separator1 ----
    separator1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    separator1.setForeground(new Color(147, 131, 86));
    add(separator1, cc.xywh(1, 7, 3, 1));

    //---- label_subjectTermType2 ----
    label_subjectTermType2.setText("Container 2 Type");
    label_subjectTermType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTermType2, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_TYPE);
    add(label_subjectTermType2, cc.xy(1, 9));

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

    //---- label_subjectSource6 ----
    label_subjectSource6.setText("Container 2  Indicator");
    label_subjectSource6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectSource6, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_INDICATOR);
    add(label_subjectSource6, cc.xy(1, 11));

    //---- containerLabel5 ----
    containerLabel5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(containerLabel5, cc.xy(3, 11));

    //---- separator3 ----
    separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    separator3.setForeground(new Color(147, 131, 86));
    add(separator3, cc.xywh(1, 13, 3, 1));

    //---- label_subjectTermType3 ----
    label_subjectTermType3.setText("Container 3 Type");
    label_subjectTermType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTermType3, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE);
    add(label_subjectTermType3, cc.xy(1, 15));

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

    //---- label_subjectSource7 ----
    label_subjectSource7.setText("Container 3  Indicator");
    label_subjectSource7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectSource7, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_INDICATOR);
    add(label_subjectSource7, cc.xy(1, 17));

    //---- containerLabel6 ----
    containerLabel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(containerLabel6, cc.xy(3, 17));

    //---- separator2 ----
    separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    separator2.setForeground(new Color(147, 131, 86));
    add(separator2, cc.xywh(1, 19, 3, 1));

    //---- label_subjectTerm2 ----
    label_subjectTerm2.setText("Location");
    label_subjectTerm2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTerm2, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_LOCATION);
    add(label_subjectTerm2, cc.xy(1, 21));

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

    //---- label_date1Begin6 ----
    label_date1Begin6.setText("User Defined String 1");
    label_date1Begin6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_date1Begin6, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING1);
    add(label_date1Begin6, cc.xy(1, 23));

    //---- dateExpression2 ----
    dateExpression2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(dateExpression2, new CellConstraints(3, 23, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT,
            new Insets(0, 0, 0, 5)));

    //---- label_date1Begin7 ----
    label_date1Begin7.setText("User Defined String 2");
    label_date1Begin7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_date1Begin7, ArchDescriptionAnalogInstances.class,
            ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING2);
    add(label_date1Begin7, cc.xy(1, 25));

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

    //======== panel1 ========
    {
        panel1.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")));

        //---- rights3 ----
        rights3.setText("User Defined Boolean 1");
        rights3.setOpaque(false);
        rights3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights3.setText(ATFieldInfo.getLabel(ArchDescriptionAnalogInstances.class,
                ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN1));
        panel1.add(rights3, cc.xywh(1, 1, 2, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- rights2 ----
        rights2.setText("User Defined Boolean 2");
        rights2.setOpaque(false);
        rights2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights2.setText(ATFieldInfo.getLabel(ArchDescriptionAnalogInstances.class,
                ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN2));
        panel1.add(rights2, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    }
    add(panel1, cc.xywh(1, 27, 3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.yale.plugins.tasks.YaleAnalogInstancesFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel2 = new JDialog();
    fields = new JPanel();
    label_subjectSource4 = new JLabel();
    containerLabel3 = new JTextField();
    separator3 = new JSeparator();
    label_subjectTermType3 = new JLabel();
    container3Type = new JComboBox();
    label_subjectSource7 = new JLabel();
    container3Type2 = new JComboBox();
    separator2 = new JSeparator();
    panel1 = new JPanel();
    rights3 = new JCheckBox();
    rights2 = new JCheckBox();
    panel3 = new JPanel();
    cancel = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== panel2 ========
    {//from  w  w w .  ja v  a  2 s .  c o  m
        Container panel2ContentPane = panel2.getContentPane();
        panel2ContentPane.setLayout(new BorderLayout());

        //======== fields ========
        {
            fields.setBorder(Borders.DLU4_BORDER);
            fields.setBackground(new Color(234, 201, 250));
            fields.setOpaque(false);
            fields.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            fields.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("max(default;400px):grow") },
                    new 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 }));

            //---- label_subjectSource4 ----
            label_subjectSource4.setText("Barcode");
            label_subjectSource4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_subjectSource4, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE);
            fields.add(label_subjectSource4, cc.xy(1, 1));

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

            //---- separator3 ----
            separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            separator3.setForeground(new Color(147, 131, 86));
            fields.add(separator3, cc.xywh(1, 3, 3, 1));

            //---- label_subjectTermType3 ----
            label_subjectTermType3.setText("Container 3 Type");
            label_subjectTermType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_subjectTermType3, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE);
            fields.add(label_subjectTermType3, cc.xy(1, 5));

            //---- container3Type ----
            container3Type.setOpaque(false);
            container3Type.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            fields.add(container3Type, cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- label_subjectSource7 ----
            label_subjectSource7.setText("User Defined String 2");
            label_subjectSource7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_subjectSource7, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING2);
            fields.add(label_subjectSource7, cc.xy(1, 7));

            //---- container3Type2 ----
            container3Type2.setOpaque(false);
            container3Type2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            fields.add(container3Type2, cc.xywh(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- separator2 ----
            separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            separator2.setForeground(new Color(147, 131, 86));
            fields.add(separator2, cc.xywh(1, 9, 3, 1));

            //======== panel1 ========
            {
                panel1.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")));

                //---- rights3 ----
                rights3.setText("User Defined Boolean 1");
                rights3.setOpaque(false);
                rights3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights3.setText(ATFieldInfo.getLabel(ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN1));
                panel1.add(rights3, cc.xywh(1, 1, 2, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- rights2 ----
                rights2.setText("User Defined Boolean 2");
                rights2.setOpaque(false);
                rights2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights2.setText(ATFieldInfo.getLabel(ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_BOOLEAN2));
                panel1.add(rights2, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            }
            fields.add(panel1, cc.xywh(1, 11, 3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

                //---- cancel ----
                cancel.setText("Cancel");
                cancel.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        cancelActionPerformed(e);
                    }
                });
                panel3.add(cancel, cc.xy(3, 1));
            }
            fields.add(panel3, cc.xywh(1, 13, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        panel2ContentPane.add(fields, BorderLayout.CENTER);
        panel2.pack();
        panel2.setLocationRelativeTo(panel2.getOwner());
    }
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:edu.yale.plugins.tasks.YaleAssignContainerInformation.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    label_subjectSource4 = new JLabel();
    barcode = new JTextField();
    label_container3Type = new JLabel();
    container3Type = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE));
    label_userDefinedString2 = new JLabel();
    userDefinedString2 = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE));
    panel1 = new JPanel();
    panel2 = new JPanel();
    label1 = new JLabel();
    restrictionNoChange = new JRadioButton();
    restrictionSetRestrict = new JRadioButton();
    restrictionSetUnrestricted = new JRadioButton();
    panel3 = new JPanel();
    label2 = new JLabel();
    exportedToVoyagerNoChange = new JRadioButton();
    exportedToVoyagerSetExported = new JRadioButton();
    exportedToVoyagerSetNotExported = new JRadioButton();
    buttonBar = new JPanel();
    assignValues = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);//from ww w  .j  a  v a 2  s . c  o  m
    setBackground(new Color(200, 205, 232));
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setOpaque(false);
            contentPanel
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_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,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC }));

            //---- label_subjectSource4 ----
            label_subjectSource4.setText("Barcode");
            label_subjectSource4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_subjectSource4, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE);
            contentPanel.add(label_subjectSource4, cc.xy(1, 1));

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

            //---- label_container3Type ----
            label_container3Type.setText("Container 3 Type");
            label_container3Type.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_container3Type, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER3_TYPE);
            contentPanel.add(label_container3Type, cc.xy(1, 3));

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

            //---- label_userDefinedString2 ----
            label_userDefinedString2.setText("User Defined String 2");
            label_userDefinedString2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_userDefinedString2, ArchDescriptionAnalogInstances.class,
                    ArchDescriptionAnalogInstances.PROPERTYNAME_USER_DEFINED_STRING2);
            contentPanel.add(label_userDefinedString2, cc.xy(1, 5));

            //---- userDefinedString2 ----
            userDefinedString2.setOpaque(false);
            userDefinedString2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.add(userDefinedString2,
                    cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

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

                //======== panel2 ========
                {
                    panel2.setOpaque(false);
                    panel2.setLayout(new FormLayout(
                            new ColumnSpec[] { 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 },
                            RowSpec.decodeSpecs("default")));

                    //---- label1 ----
                    label1.setText("Restrictions:");
                    panel2.add(label1, cc.xy(1, 1));

                    //---- restrictionNoChange ----
                    restrictionNoChange.setText("No change");
                    restrictionNoChange.setSelected(true);
                    panel2.add(restrictionNoChange, cc.xy(3, 1));

                    //---- restrictionSetRestrict ----
                    restrictionSetRestrict.setText("Restrict");
                    panel2.add(restrictionSetRestrict, cc.xy(5, 1));

                    //---- restrictionSetUnrestricted ----
                    restrictionSetUnrestricted.setText("Unrestrict");
                    panel2.add(restrictionSetUnrestricted, cc.xy(7, 1));
                }
                panel1.add(panel2, cc.xywh(1, 1, 3, 1));
            }
            contentPanel.add(panel1, cc.xywh(1, 7, 3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //======== panel3 ========
            {
                panel3.setOpaque(false);
                panel3.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { 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 },
                                RowSpec.decodeSpecs("default")));

                //---- label2 ----
                label2.setText("Export to voyager");
                panel3.add(label2, cc.xy(1, 1));

                //---- exportedToVoyagerNoChange ----
                exportedToVoyagerNoChange.setText("No change");
                exportedToVoyagerNoChange.setSelected(true);
                panel3.add(exportedToVoyagerNoChange, cc.xy(3, 1));

                //---- exportedToVoyagerSetExported ----
                exportedToVoyagerSetExported.setText("Set exported");
                panel3.add(exportedToVoyagerSetExported, cc.xy(5, 1));

                //---- exportedToVoyagerSetNotExported ----
                exportedToVoyagerSetNotExported.setText("Set not exported");
                panel3.add(exportedToVoyagerSetNotExported, cc.xy(7, 1));
            }
            contentPanel.add(panel3, cc.xywh(1, 9, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
            buttonBar.setOpaque(false);
            buttonBar.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC,
                            FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC },
                    RowSpec.decodeSpecs("pref")));

            //---- assignValues ----
            assignValues.setText("Assign Values");
            assignValues.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    assignValuesActionPerformed(e);
                }
            });
            buttonBar.add(assignValues, cc.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            cancelButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    cancelButtonActionPerformed(e);
                }
            });
            buttonBar.add(cancelButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());

    //---- restrictionsButtonGroup ----
    ButtonGroup restrictionsButtonGroup = new ButtonGroup();
    restrictionsButtonGroup.add(restrictionNoChange);
    restrictionsButtonGroup.add(restrictionSetRestrict);
    restrictionsButtonGroup.add(restrictionSetUnrestricted);

    //---- exportedToVoyagerButtonGroup ----
    ButtonGroup exportedToVoyagerButtonGroup = new ButtonGroup();
    exportedToVoyagerButtonGroup.add(exportedToVoyagerNoChange);
    exportedToVoyagerButtonGroup.add(exportedToVoyagerSetExported);
    exportedToVoyagerButtonGroup.add(exportedToVoyagerSetNotExported);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:fileCompare.processor.DuplicateFinder.java

License:Open Source License

/**
 * This class actually finds the duplicates, and displays some status in a
 * dialog box while it is searching for them.
 * //from  w ww . ja v  a  2s .  co m
 * @param fsd
 */
public DuplicateFinder(FolderSelectionDialog fsd) {
    fsd_ = fsd;
    dialog = new JDialog(fsd_, "Processing....", false);
    FormLayout layout = new FormLayout("4dlu, c:pref:grow", "c:pref:grow, 4dlu, c:pref:grow");
    PanelBuilder builder = new PanelBuilder(layout);
    status = new JLabel("Preparing to process");
    JButton cancel = new JButton("Cancel");
    cancel.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            cancel_ = true;
        }
    });
    builder.add(status, new CellConstraints(2, 1, CellConstraints.LEFT, CellConstraints.CENTER));
    builder.nextLine(2);
    builder.nextColumn();
    builder.add(cancel);
    dialog.getContentPane().add(builder.getPanel());
    dialog.setSize(300, 150);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = dialog.getSize();
    dialog.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
}

From source file:fsart.diffTools.gui.DiffToolsMainPanel.java

License:CeCILL license

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it by your code!
 *
 * @noinspection ALL//w  w  w  . j  ava  2 s . c om
 */
private void $$$setupUI$$$() {
    panel1 = new JPanel();
    panel1.setLayout(new BorderLayout(0, 0));
    final Spacer spacer1 = new Spacer();
    panel1.add(spacer1, BorderLayout.WEST);
    final Spacer spacer2 = new Spacer();
    panel1.add(spacer2, BorderLayout.EAST);
    final Spacer spacer3 = new Spacer();
    panel1.add(spacer3, BorderLayout.SOUTH);
    final Spacer spacer4 = new Spacer();
    panel1.add(spacer4, BorderLayout.NORTH);
    final JPanel panel2 = new JPanel();
    panel2.setLayout(new FormLayout(
            "left:max(d;4px):noGrow,left:4dlu:noGrow,center:max(d;50px):grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:5dlu:noGrow,fill:max(d;4px):noGrow",
            "top:d:grow,top:4dlu:noGrow,top:d:noGrow,top:4dlu:noGrow,center:max(d;25px):noGrow,top:6dlu:noGrow,top:max(d;4px):noGrow,top:4dlu:noGrow,top:max(d;25px):noGrow,top:7dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,bottom:d:grow"));
    panel2.putClientProperty("html.disable", Boolean.FALSE);
    panel1.add(panel2, BorderLayout.CENTER);
    final Spacer spacer5 = new Spacer();
    CellConstraints cc = new CellConstraints();
    panel2.add(spacer5, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    browseButton = new JButton();
    browseButton.setText("Browse");
    panel2.add(browseButton, cc.xy(5, 5));
    comparedFileLabel = new JLabel();
    comparedFileLabel.setText("Compared file :");
    panel2.add(comparedFileLabel, cc.xy(3, 7, CellConstraints.LEFT, CellConstraints.TOP));
    browseButton1 = new JButton();
    browseButton1.setText("Browse");
    panel2.add(browseButton1, cc.xy(5, 9, CellConstraints.DEFAULT, CellConstraints.TOP));
    final Spacer spacer6 = new Spacer();
    panel2.add(spacer6, cc.xy(3, 13, CellConstraints.DEFAULT, CellConstraints.FILL));
    final Spacer spacer7 = new Spacer();
    panel2.add(spacer7, cc.xy(1, 9, CellConstraints.FILL, CellConstraints.DEFAULT));
    final Spacer spacer8 = new Spacer();
    panel2.add(spacer8, cc.xy(7, 7, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JPanel panel3 = new JPanel();
    panel3.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
    panel2.add(panel3, cc.xyw(3, 11, 3, CellConstraints.FILL, CellConstraints.FILL));
    compareButton = new JButton();
    compareButton.setPreferredSize(new Dimension(100, 29));
    compareButton.setText("Compare");
    panel3.add(compareButton, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.CENTER));
    baseFileLabel = new JLabel();
    baseFileLabel.setText("Base file :");
    panel2.add(baseFileLabel, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.FILL));
    baseFileTxt = new JTextField();
    baseFileTxt.setMinimumSize(new Dimension(50, 27));
    baseFileTxt.setPreferredSize(new Dimension(50, 27));
    panel2.add(baseFileTxt, cc.xy(3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
    comparedFileTxt = new JTextField();
    comparedFileTxt.setMinimumSize(new Dimension(50, 27));
    comparedFileTxt.setPreferredSize(new Dimension(100, 27));
    panel2.add(comparedFileTxt, cc.xy(3, 9, CellConstraints.FILL, CellConstraints.DEFAULT));
    outputField = new JTextField();
    outputField.setMinimumSize(new Dimension(50, 27));
    outputField.setPreferredSize(new Dimension(100, 27));
    panel2.add(outputField, cc.xy(3, 15, CellConstraints.FILL, CellConstraints.DEFAULT));
}