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

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

Introduction

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

Prototype

Alignment CENTER

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

Click Source Link

Document

Put the component in the center.

Usage

From source file:org.archiviststoolkit.editor.ChronologyItemsFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_subjectScopeNote = new JLabel();
    eventDate = ATBasicComponentFactory//from   w w w  . j  av a2  s.  c o m
            .createTextField(detailsModel.getModel(ChronologyItems.PROPERTYNAME_EVENT_DATE));
    label_subjectScopeNote2 = new JLabel();
    scrollPane7 = new JScrollPane();
    eventsTable = new DomainSortedTable(Events.class);
    panel30 = new JPanel();
    addEventButton = new JButton();
    removeEventButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);
    setBackground(new Color(200, 205, 232));
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    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.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

    //---- label_subjectScopeNote ----
    label_subjectScopeNote.setText("Event Date");
    label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote, ChronologyItems.class,
            ChronologyItems.PROPERTYNAME_EVENT_DATE);
    add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    add(eventDate, cc.xy(3, 1));

    //---- label_subjectScopeNote2 ----
    label_subjectScopeNote2.setText("Events");
    label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ChronologyItems.class,
            ChronologyItems.PROPERTYNAME_EVENT_DATE);
    add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

        //---- eventsTable ----
        eventsTable.setFocusable(false);
        eventsTable.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                eventsTableMouseClicked(e);
            }
        });
        scrollPane7.setViewportView(eventsTable);
    }
    add(scrollPane7, cc.xywh(1, 5, 3, 1));

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

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

        //---- removeEventButton ----
        removeEventButton.setText("Remove Event");
        removeEventButton.setOpaque(false);
        removeEventButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        removeEventButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeEventButtonActionPerformed(e);
            }
        });
        panel30.add(removeEventButton, cc.xy(3, 1));
    }
    add(panel30, cc.xywh(1, 7, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.DigitalObjectFields.java

License:Open Source License

private void initComponents() {

    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel3 = new JPanel();
    label2 = new JLabel();
    digitalObjectTitle = new JTextField();
    tabbedPane = new JTabbedPane();
    basicInformationPanel = new JPanel();
    panel16 = new JPanel();
    panel1 = new JPanel();
    label_resourcesLanguageCode4 = new JLabel();
    label = ATBasicComponentFactory.createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_LABEL),
            false);//from w w w.  j a  va 2  s  . c  om
    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();
    panel18 = new JPanel();
    panel15 = new JPanel();
    panel20 = new JPanel();
    ExtentNumberLabel3 = new JLabel();
    label_resourcesDateExpression = new JLabel();
    dateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    panel9 = new JPanel();
    Date1Label = new JLabel();
    label_resourcesDateBegin = new JLabel();
    dateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    dateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END);
    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();
    namesPanel = new JPanel();
    SubjectsLabel2 = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel8 = new JPanel();
    editNameRelationshipButton = new JButton();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    separator5 = new JSeparator();
    SubjectsLabel3 = new JLabel();
    scrollPane3 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel11 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    panel6 = new JPanel();
    scrollPane5 = new JScrollPane();
    notesTable = new DomainSortedTable(ArchDescriptionRepeatingData.class);
    panel14 = new JPanel();
    addNoteEtcComboBox = new JComboBox();
    removeNoteButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== panel3 ========
    {
        panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.setBackground(new Color(200, 205, 232));
        panel3.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")));

        //---- label2 ----
        label2.setText("Title: ");
        label2.setForeground(new Color(0, 0, 102));
        label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.add(label2, cc.xy(1, 1));

        //---- digitalObjectTitle ----
        digitalObjectTitle.setEditable(false);
        digitalObjectTitle.setOpaque(false);
        digitalObjectTitle.setBorder(null);
        panel3.add(digitalObjectTitle, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel3, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

    //======== tabbedPane ========
    {
        tabbedPane.setMinimumSize(new Dimension(635, 408));
        tabbedPane.setFocusable(false);
        tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        tabbedPane.setBackground(new Color(200, 205, 232));
        tabbedPane.setOpaque(true);

        //======== basicInformationPanel ========
        {
            basicInformationPanel.setBackground(new Color(200, 205, 232));
            basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            basicInformationPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("left:max(default;300px):grow(0.5)") },
                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));
            ((FormLayout) basicInformationPanel.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));
                    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);
                        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));

                            //---- 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));
            }
            basicInformationPanel.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[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

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

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

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

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

                                //---- label_resourcesDateExpression ----
                                label_resourcesDateExpression.setText("Date Expression");
                                label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, DigitalObjects.class,
                                        DigitalObjects.PROPERTYNAME_DATE_EXPRESSION);
                                panel20.add(label_resourcesDateExpression, cc.xy(3, 3));
                                panel20.add(dateExpression, cc.xy(5, 3));

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

                                    //---- Date1Label ----
                                    Date1Label.setText("Date");
                                    Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                    panel9.add(Date1Label, cc.xy(1, 1));

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

                                    //---- dateBegin ----
                                    dateBegin.setColumns(4);
                                    panel9.add(dateBegin, cc.xy(5, 1));

                                    //---- label_resourcesDateEnd ----
                                    label_resourcesDateEnd.setText("End");
                                    label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                    ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, DigitalObjects.class,
                                            DigitalObjects.PROPERTYNAME_DATE_END);
                                    panel9.add(label_resourcesDateEnd, cc.xy(7, 1));

                                    //---- dateEnd ----
                                    dateEnd.setColumns(4);
                                    panel9.add(dateEnd, cc.xy(9, 1));
                                }
                                panel20.add(panel9, cc.xywh(3, 5, 3, 1));
                            }
                            panel15.add(panel20, cc.xy(1, 1));
                        }
                        panel18.add(panel15,
                                cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
                    }
                    panel17.add(panel18, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                    //======== 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),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                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 }));

                        //---- 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);
                            scrollPane43.setViewportView(title2);
                        }
                        digitalObjectResourceRecordOnly.add(scrollPane43,
                                cc.xywh(3, 5, 3, 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));
                    }
                    panel17.add(digitalObjectResourceRecordOnly, cc.xy(1, 3));

                    //======== 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));
                        componentIDPanel.add(dateExpression2, cc.xy(3, 1));
                    }
                    panel17.add(componentIDPanel, cc.xy(1, 5));
                }
                panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            basicInformationPanel.add(panel13,
                    cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //======== 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));
            }
            basicInformationPanel.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(e);
                        }
                    });
                    panel29.add(removeFileVersionButton, cc.xy(3, 1));
                }
                panel2.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            basicInformationPanel.add(panel2, cc.xywh(1, 5, 3, 1));
        }
        tabbedPane.addTab("Basic Description", basicInformationPanel);

        //======== namesPanel ========
        {
            namesPanel.setBackground(new Color(200, 205, 232));
            namesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
            ((FormLayout) namesPanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } });

            //---- SubjectsLabel2 ----
            SubjectsLabel2.setText("Names");
            SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel2, cc.xy(1, 1));

            //======== scrollPane1 ========
            {
                scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane1.setPreferredSize(new Dimension(600, 320));
                scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- namesTable ----
                namesTable.setPreferredScrollableViewportSize(new Dimension(450, 300));
                namesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        namesTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(namesTable);
            }
            namesPanel.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel8 ========
            {
                panel8.setBackground(new Color(231, 188, 251));
                panel8.setOpaque(false);
                panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel8.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")));

                //---- editNameRelationshipButton ----
                editNameRelationshipButton.setText("Edit Name Link");
                editNameRelationshipButton.setOpaque(false);
                editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                editNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        editNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(editNameRelationshipButton, cc.xy(1, 1));

                //---- addNameRelationshipButton ----
                addNameRelationshipButton.setBackground(new Color(231, 188, 251));
                addNameRelationshipButton.setText("Add Name Link");
                addNameRelationshipButton.setOpaque(false);
                addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(addNameRelationshipButton, cc.xy(3, 1));

                //---- removeNameRelationshipButton ----
                removeNameRelationshipButton.setBackground(new Color(231, 188, 251));
                removeNameRelationshipButton.setText("Remove Name Link");
                removeNameRelationshipButton.setOpaque(false);
                removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(removeNameRelationshipButton, cc.xy(5, 1));
            }
            namesPanel.add(panel8, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator5 ----
            separator5.setBackground(new Color(220, 220, 232));
            separator5.setForeground(new Color(147, 131, 86));
            separator5.setMinimumSize(new Dimension(1, 10));
            separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(separator5, cc.xy(1, 7));

            //---- SubjectsLabel3 ----
            SubjectsLabel3.setText("Subjects");
            SubjectsLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel3, cc.xy(1, 9));

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

                //---- subjectsTable ----
                subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200));
                scrollPane3.setViewportView(subjectsTable);
            }
            namesPanel.add(scrollPane3, cc.xy(1, 11));

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

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

                //---- removeSubjectRelationshipButton ----
                removeSubjectRelationshipButton.setBackground(new Color(231, 188, 251));
                removeSubjectRelationshipButton.setText("Remove Subject Link");
                removeSubjectRelationshipButton.setOpaque(false);
                removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeSubjectRelationshipButtonActionPerformed();
                    }
                });
                panel11.add(removeSubjectRelationshipButton, cc.xy(3, 1));
            }
            namesPanel.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Names & Subjects", namesPanel);

        //======== panel6 ========
        {
            panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel6.setBackground(new Color(200, 205, 232));
            panel6.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 }));

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

                //---- notesTable ----
                notesTable.setFocusable(false);
                notesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        notesTableMouseClicked(e);
                    }
                });
                scrollPane5.setViewportView(notesTable);
            }
            panel6.add(scrollPane5, cc.xy(1, 1));

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

                //---- addNoteEtcComboBox ----
                addNoteEtcComboBox.setOpaque(false);
                addNoteEtcComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNoteEtcComboBoxActionPerformed(e);
                    }
                });
                panel14.add(addNoteEtcComboBox, cc.xy(1, 1));

                //---- removeNoteButton ----
                removeNoteButton.setBackground(new Color(231, 188, 251));
                removeNoteButton.setText("Remove Note");
                removeNoteButton.setOpaque(false);
                removeNoteButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNoteButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNoteButtonActionPerformed(e);
                    }
                });
                panel14.add(removeNoteButton, cc.xy(3, 1));
            }
            panel6.add(panel14, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Notes", panel6);

    }
    add(tabbedPane, cc.xywh(1, 2, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
    //        instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
}

From source file:org.archiviststoolkit.editor.DigitalObjectTreeViewer.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel3 = new JPanel();
    label2 = new JLabel();
    resourceTitle = new JTextField();
    label3 = new JLabel();
    resourceId = new JTextField();
    splitPane = new JSplitPane();
    digitalObjectTreeScrollPane = new JScrollPane();
    panel2 = new JPanel();
    addChildButton = new JButton();
    addSiblingBelowButton = new JButton();
    deleteDigitalObjectButton = new JButton();
    exportMetsButton = new JButton();
    exportMARC = new JButton();
    exportMODS = new JButton();
    exportDC = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setPreferredSize(new Dimension(1000, 600));
    setOpaque(false);//from   www . j av  a 2s .  c om
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setLayout(new FormLayout("default:grow", "default, default, fill:default"));

    //======== panel3 ========
    {
        panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.setBackground(new Color(200, 205, 232));
        panel3.setVisible(false);
        panel3.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                RowSpec.decodeSpecs("default")));

        //---- label2 ----
        label2.setText("Digtal Object Title: ");
        label2.setForeground(new Color(0, 0, 102));
        label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.add(label2, cc.xy(1, 1));

        //---- resourceTitle ----
        resourceTitle.setEditable(false);
        resourceTitle.setOpaque(false);
        resourceTitle.setBorder(null);
        panel3.add(resourceTitle, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

        //---- label3 ----
        label3.setText("Resource ID: ");
        label3.setForeground(new Color(0, 0, 102));
        label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.add(label3, cc.xy(5, 1));

        //---- resourceId ----
        resourceId.setEditable(false);
        resourceId.setOpaque(false);
        resourceId.setBorder(null);
        panel3.add(resourceId, cc.xywh(7, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel3, cc.xy(1, 1));

    //======== splitPane ========
    {
        splitPane.setDividerLocation(300);
        splitPane.setLastDividerLocation(300);
        splitPane.setPreferredSize(new Dimension(1000, 600));
        splitPane.setOpaque(false);
        splitPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

        //======== digitalObjectTreeScrollPane ========
        {
            digitalObjectTreeScrollPane.setPreferredSize(new Dimension(250, 384));
            digitalObjectTreeScrollPane.setMinimumSize(new Dimension(250, 384));
            digitalObjectTreeScrollPane
                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            digitalObjectTreeScrollPane.setFocusable(false);
            digitalObjectTreeScrollPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            digitalObjectTreeScrollPane.setAutoscrolls(true);
        }
        splitPane.setLeftComponent(digitalObjectTreeScrollPane);
    }
    add(splitPane, cc.xy(1, 2));

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

        //---- addChildButton ----
        addChildButton.setOpaque(false);
        addChildButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        addChildButton.setIcon(
                new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/addChild.jpg")));
        addChildButton.setHorizontalTextPosition(SwingConstants.RIGHT);
        addChildButton.setToolTipText("Add Child");
        addChildButton.setText("<html><c>Add<br>Child</c></html>");
        addChildButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                addChildActionPerformed(e);
            }
        });
        panel2.add(addChildButton, cc.xy(1, 1));

        //---- addSiblingBelowButton ----
        addSiblingBelowButton.setOpaque(false);
        addSiblingBelowButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        addSiblingBelowButton.setIcon(new ImageIcon(
                getClass().getResource("/org/archiviststoolkit/resources/images/addSibling.png")));
        addSiblingBelowButton.setToolTipText("Add Sibling Above");
        addSiblingBelowButton.setText("<html>Add<br>Sibling</html>");
        addSiblingBelowButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                addSiblingBelowActionPerformed(e);
            }
        });
        panel2.add(addSiblingBelowButton, cc.xy(3, 1));

        //---- deleteDigitalObjectButton ----
        deleteDigitalObjectButton.setOpaque(false);
        deleteDigitalObjectButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        deleteDigitalObjectButton.setIcon(
                new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/delete.jpg")));
        deleteDigitalObjectButton.setToolTipText("Delete Digital Object");
        deleteDigitalObjectButton.setText("<html>Delete<br>Node</html>");
        deleteDigitalObjectButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                deleteDigitalObjectButtonActionPerformed(e);
            }
        });
        panel2.add(deleteDigitalObjectButton, cc.xy(5, 1));

        //---- exportMetsButton ----
        exportMetsButton.setOpaque(false);
        exportMetsButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        exportMetsButton.setIcon(new ImageIcon(
                getClass().getResource("/org/archiviststoolkit/resources/images/exportMETS.jpg")));
        exportMetsButton.setToolTipText("Export METS");
        exportMetsButton.setText("<html>Export<br>METS</html>");
        exportMetsButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exportMetsButtonActionPerformed(e);
            }
        });
        panel2.add(exportMetsButton, cc.xywh(9, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- exportMARC ----
        exportMARC.setOpaque(false);
        exportMARC.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        exportMARC.setIcon(new ImageIcon(
                getClass().getResource("/org/archiviststoolkit/resources/images/exportMARC.jpg")));
        exportMARC.setToolTipText("Export MARC");
        exportMARC.setText("<html>Export<br>MARC</html>");
        exportMARC.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exportMARCActionPerformed(e);
            }
        });
        panel2.add(exportMARC, cc.xywh(11, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- exportMODS ----
        exportMODS.setOpaque(false);
        exportMODS.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        exportMODS.setIcon(new ImageIcon(
                getClass().getResource("/org/archiviststoolkit/resources/images/exportMODS.png")));
        exportMODS.setToolTipText("Export MODS");
        exportMODS.setText("<html>Export<br>MODS</html>");
        exportMODS.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exportMODSActionPerformed(e);
            }
        });
        panel2.add(exportMODS, cc.xywh(13, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- exportDC ----
        exportDC.setOpaque(false);
        exportDC.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        exportDC.setIcon(
                new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/exportDC.png")));
        exportDC.setToolTipText("Export Dublin Core");
        exportDC.setText("<html>Export<br>Dublin Core</html>");
        exportDC.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                exportDCActionPerformed(e);
            }
        });
        panel2.add(exportDC, cc.xywh(15, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    }
    add(panel2, cc.xy(1, 3));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.IndexItemsFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_subjectScopeNote = new JLabel();
    scrollPane1 = new JScrollPane();
    descritpion = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(IndexItems.PROPERTYNAME_ITEM_VALUE));
    label_subjectScopeNote2 = new JLabel();
    type = ATBasicComponentFactory.createComboBox(detailsModel, IndexItems.PROPERTYNAME_ITEM_TYPE,
            IndexItems.class);
    label_subjectScopeNote3 = new JLabel();
    reference = new JComboBox();
    label_subjectScopeNote4 = new JLabel();
    referenceText = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(IndexItems.PROPERTYNAME_REFERENCE_TEXT));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);//from   w ww .jav a 2 s  .  c  om
    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,
                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

    //---- label_subjectScopeNote ----
    label_subjectScopeNote.setText("Value");
    label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote, IndexItems.class, IndexItems.PROPERTYNAME_ITEM_VALUE);
    add(label_subjectScopeNote, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //======== scrollPane1 ========
    {
        scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        scrollPane1.setMaximumSize(new Dimension(32767, 100));
        scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

        //---- descritpion ----
        descritpion.setRows(4);
        descritpion.setLineWrap(true);
        descritpion.setTabSize(20);
        descritpion.setWrapStyleWord(true);
        scrollPane1.setViewportView(descritpion);
    }
    add(scrollPane1, cc.xy(3, 1));

    //---- label_subjectScopeNote2 ----
    label_subjectScopeNote2.setText("Type");
    label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, IndexItems.class, IndexItems.PROPERTYNAME_ITEM_TYPE);
    add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER));

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

    //---- label_subjectScopeNote3 ----
    label_subjectScopeNote3.setText("Reference");
    label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote3, IndexItems.class, IndexItems.PROPERTYNAME_REFERENCE);
    add(label_subjectScopeNote3, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER));

    //---- reference ----
    reference.setMaximumSize(new Dimension(50, 27));
    reference.setOpaque(false);
    reference.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    reference.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            referenceActionPerformed(e);
        }
    });
    add(reference, cc.xywh(3, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

    //---- label_subjectScopeNote4 ----
    label_subjectScopeNote4.setText("Reference Text");
    label_subjectScopeNote4.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote4, IndexItems.class,
            IndexItems.PROPERTYNAME_REFERENCE_TEXT);
    add(label_subjectScopeNote4, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER));
    add(referenceText, cc.xy(3, 7));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.ListDefinitionFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_subjectTerm = new JLabel();
    title = ATBasicComponentFactory.createTextField(detailsModel.getModel(ListDefinition.PROPERTYNAME_TITLE));
    label_subjectScopeNote2 = new JLabel();
    scrollPane2 = new JScrollPane();
    ingestProblems = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ListDefinition.PROPERTYNAME_EAD_INGEST_PROBLEMS));
    scrollPane7 = new JScrollPane();
    itemsTable = new DomainSortedTable(ListDefinitionItems.class);
    panel30 = new JPanel();
    addItemButton = new JButton();
    removeItemButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);//from   w  w w  . ja va  2 s  . c o m
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setPreferredSize(new Dimension(600, 500));
    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.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

    //---- label_subjectTerm ----
    label_subjectTerm.setText("Title");
    label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTerm, ListDefinition.class, ListDefinition.PROPERTYNAME_TITLE);
    add(label_subjectTerm, cc.xy(1, 1));
    add(title, cc.xy(3, 1));

    //---- label_subjectScopeNote2 ----
    label_subjectScopeNote2.setText("Ingest Problems");
    label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ListDefinition.class,
            ListDefinition.PROPERTYNAME_EAD_INGEST_PROBLEMS);
    add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //======== scrollPane2 ========
    {
        scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        scrollPane2.setMaximumSize(new Dimension(32767, 100));
        scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

        //---- ingestProblems ----
        ingestProblems.setRows(4);
        ingestProblems.setLineWrap(true);
        ingestProblems.setTabSize(20);
        ingestProblems.setWrapStyleWord(true);
        scrollPane2.setViewportView(ingestProblems);
    }
    add(scrollPane2, cc.xy(3, 3));

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

        //---- itemsTable ----
        itemsTable.setFocusable(false);
        itemsTable.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                itemsTableMouseClicked(e);
            }

            @Override
            public void mousePressed(MouseEvent e) {
                itemsTableMousePressed(e);
            }

            @Override
            public void mouseReleased(MouseEvent e) {
                itemsTableMouseReleased(e);
            }
        });
        scrollPane7.setViewportView(itemsTable);
    }
    add(scrollPane7, cc.xywh(1, 5, 3, 1));

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

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

        //---- removeItemButton ----
        removeItemButton.setBackground(new Color(231, 188, 251));
        removeItemButton.setText("Remove Item");
        removeItemButton.setOpaque(false);
        removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        removeItemButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeItemButtonActionPerformed(e);
            }
        });
        panel30.add(removeItemButton, cc.xy(3, 1));
    }
    add(panel30, cc.xywh(1, 7, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.ListOrderedFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_subjectTerm = new JLabel();
    title = ATBasicComponentFactory.createTextField(detailsModel.getModel(ListOrdered.PROPERTYNAME_TITLE));
    label_subjectScopeNote3 = new JLabel();
    unitType = ATBasicComponentFactory.createComboBox(detailsModel, ListOrdered.PROPERTYNAME_NUMERATION,
            ListOrdered.class);
    label_subjectScopeNote2 = new JLabel();
    scrollPane2 = new JScrollPane();
    ingestProblems = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ListOrdered.PROPERTYNAME_EAD_INGEST_PROBLEMS));
    scrollPane7 = new JScrollPane();
    itemsTable = new DomainSortedTable(ListOrderedItems.class);
    panel30 = new JPanel();
    addItemButton = new JButton();
    removeItemButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);/*from w w  w  . ja v a  2s .  c o m*/
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setPreferredSize(new Dimension(600, 500));
    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,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

    //---- label_subjectTerm ----
    label_subjectTerm.setText("Title");
    label_subjectTerm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectTerm, ListOrdered.class, ListOrdered.PROPERTYNAME_TITLE);
    add(label_subjectTerm, cc.xy(1, 1));
    add(title, cc.xy(3, 1));

    //---- label_subjectScopeNote3 ----
    label_subjectScopeNote3.setText("Numeration");
    label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote3, ListOrdered.class,
            ListOrdered.PROPERTYNAME_NUMERATION);
    add(label_subjectScopeNote3, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

    //---- label_subjectScopeNote2 ----
    label_subjectScopeNote2.setText("Ingest Problems");
    label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, ListOrdered.class,
            ListOrdered.PROPERTYNAME_EAD_INGEST_PROBLEMS);
    add(label_subjectScopeNote2, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //======== scrollPane2 ========
    {
        scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        scrollPane2.setMaximumSize(new Dimension(32767, 100));
        scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

        //---- ingestProblems ----
        ingestProblems.setRows(4);
        ingestProblems.setLineWrap(true);
        ingestProblems.setTabSize(20);
        ingestProblems.setWrapStyleWord(true);
        scrollPane2.setViewportView(ingestProblems);
    }
    add(scrollPane2, cc.xy(3, 5));

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

        //---- itemsTable ----
        itemsTable.setFocusable(false);
        itemsTable.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseClicked(MouseEvent e) {
                itemsTableMouseClicked(e);
            }

            @Override
            public void mousePressed(MouseEvent e) {
                itemsTableMousePressed(e);
            }

            @Override
            public void mouseReleased(MouseEvent e) {
                itemsTableMouseReleased(e);
            }
        });
        scrollPane7.setViewportView(itemsTable);
    }
    add(scrollPane7, cc.xywh(1, 7, 3, 1));

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

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

        //---- removeItemButton ----
        removeItemButton.setBackground(new Color(231, 188, 251));
        removeItemButton.setText("Remove Item");
        removeItemButton.setOpaque(false);
        removeItemButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        removeItemButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                removeItemButtonActionPerformed(e);
            }
        });
        panel30.add(removeItemButton, cc.xy(3, 1));
    }
    add(panel30, cc.xywh(1, 9, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.NameFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    sortNameDisplay = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_SORT_NAME));
    tabbedPane = new JTabbedPane();
    detailsContainer = new JPanel();
    detailsPanel = new JPanel();
    separator3 = new JSeparator();
    descriptionPanel = new JPanel();
    label_nameDescriptionNote2 = new JLabel();
    nameDescriptionType = ATBasicComponentFactory.createComboBox(detailsModel,
            Names.PROPERTYNAME_DESCRIPTION_TYPE, Names.class);
    label_nameDescriptionNote = new JLabel();
    scrollPane2 = new JScrollPane();
    nameDescriptionNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Names.PROPERTYNAME_DESCRIPTION_NOTE));
    label_nameCitation = new JLabel();
    scrollPane23 = new JScrollPane();
    nameCitation = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Names.PROPERTYNAME_CITATION));
    nonPreferredNamePanel = new JPanel();
    label_subjectScopeNote4 = new JLabel();
    scrollPane1 = new JScrollPane();
    nonPreferredNamesTable = new DomainSortableTable(NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_SORT_NAME);
    panel1 = new JPanel();
    addNonPreferredNameButton = new JButton();
    removeNonPreferredNameButton = new JButton();
    separator1 = new JSeparator();
    label_subjectScopeNote3 = new JLabel();
    scrollPane5 = new JScrollPane();
    accessionsTable = new DomainSortableTable(Accessions.class, Accessions.PROPERTYNAME_ACCESSION_NUMBER);
    separator2 = new JSeparator();
    label_subjectScopeNote2 = new JLabel();
    scrollPane4 = new JScrollPane();
    resourcesTable = new ResourceAndComponentLinkTable(Resources.class,
            Resources.PROPERTYNAME_RESOURCE_IDENTIFIER);
    label1 = new JLabel();
    separator4 = new JSeparator();
    label_subjectScopeNote5 = new JLabel();
    scrollPane6 = new JScrollPane();
    digitalObjectsTable = new DomainSortableTable(DigitalObjects.class,
            DigitalObjects.PROPERTYNAME_METS_IDENTIFIER);
    contactInfoPanel = new JPanel();
    label_nameContactAddress3 = new JLabel();
    salutation = ATBasicComponentFactory.createTextField(detailsModel.getModel(Names.PROPERTYNAME_SALUTATION));
    label_nameContactAddress1 = new JLabel();
    nameContactAddress1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_ADDRESS_1));
    label_nameContactAddress2 = new JLabel();
    nameContactAddress2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_ADDRESS_2));
    label_nameContactCity = new JLabel();
    nameContactCity = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_CITY));
    label_nameContactRegion = new JLabel();
    nameContactRegion = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_REGION));
    label_nameContactMailCode = new JLabel();
    nameContactMailCode = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_MAIL_CODE));
    label_nameContactCountry = new JLabel();
    nameContactCountry = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_COUNTRY));
    label_nameContactPhone = new JLabel();
    nameContactPhone = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_PHONE));
    label_nameContactFax = new JLabel();
    nameContactFax = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_FAX));
    label_nameContactEmail = new JLabel();
    nameContactEmail = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_EMAIL));
    label_nameContactName = new JLabel();
    nameContactName = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Names.PROPERTYNAME_CONTACT_NAME));
    label_nameContactNotes = new JLabel();
    scrollPane3 = new JScrollPane();
    nameContactNotesTable = new DomainSortedTable(NameContactNotes.class);
    panel2 = new JPanel();
    addNoteButton = new JButton();
    removeContactNoteButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setPreferredSize(new Dimension(900, 500));
    setBorder(Borders.DLU4_BORDER);/*from w  ww.  j  av a  2  s . co m*/
    setLayout(new FormLayout("default:grow", "default, fill:default:grow"));

    //---- sortNameDisplay ----
    sortNameDisplay.setEditable(false);
    sortNameDisplay.setBorder(null);
    sortNameDisplay.setForeground(new Color(0, 0, 102));
    sortNameDisplay.setSelectionColor(new Color(204, 0, 51));
    sortNameDisplay.setOpaque(false);
    add(sortNameDisplay, cc.xy(1, 1));

    //======== tabbedPane ========
    {
        tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        tabbedPane.setBackground(new Color(200, 205, 232));
        tabbedPane.setOpaque(true);

        //======== detailsContainer ========
        {
            detailsContainer.setBackground(new Color(200, 205, 232));
            detailsContainer.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 }));

            //======== detailsPanel ========
            {
                detailsPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                detailsPanel.setBackground(new Color(200, 205, 232));
                detailsPanel.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.NO_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec("max(default;300px):grow"),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, 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 }));
            }
            detailsContainer.add(detailsPanel, cc.xy(1, 1));

            //---- separator3 ----
            separator3.setBackground(new Color(220, 220, 232));
            separator3.setForeground(new Color(147, 131, 86));
            separator3.setMinimumSize(new Dimension(1, 10));
            separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            detailsContainer.add(separator3, cc.xy(1, 3));

            //======== descriptionPanel ========
            {
                descriptionPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                descriptionPanel.setBackground(new Color(200, 205, 232));
                descriptionPanel.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                                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_nameDescriptionNote2 ----
                label_nameDescriptionNote2.setText("Name Description Type");
                label_nameDescriptionNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_nameDescriptionNote2, Names.class,
                        Names.PROPERTYNAME_DESCRIPTION_TYPE);
                descriptionPanel.add(label_nameDescriptionNote2, cc.xy(1, 1));

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

                //---- label_nameDescriptionNote ----
                label_nameDescriptionNote.setText("Description Note");
                label_nameDescriptionNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_nameDescriptionNote, Names.class,
                        Names.PROPERTYNAME_DESCRIPTION_NOTE);
                descriptionPanel.add(label_nameDescriptionNote, cc.xy(1, 3));

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

                    //---- nameDescriptionNote ----
                    nameDescriptionNote.setRows(8);
                    nameDescriptionNote.setLineWrap(true);
                    nameDescriptionNote.setWrapStyleWord(true);
                    scrollPane2.setViewportView(nameDescriptionNote);
                }
                descriptionPanel.add(scrollPane2, cc.xy(3, 3));

                //---- label_nameCitation ----
                label_nameCitation.setText("Citation(s)");
                label_nameCitation.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_nameCitation, Names.class, Names.PROPERTYNAME_CITATION);
                descriptionPanel.add(label_nameCitation, cc.xy(1, 5));

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

                    //---- nameCitation ----
                    nameCitation.setRows(8);
                    nameCitation.setLineWrap(true);
                    nameCitation.setWrapStyleWord(true);
                    scrollPane23.setViewportView(nameCitation);
                }
                descriptionPanel.add(scrollPane23, cc.xy(3, 5));
            }
            detailsContainer.add(descriptionPanel, cc.xy(1, 5));
        }
        tabbedPane.addTab("Details", detailsContainer);

        //======== nonPreferredNamePanel ========
        {
            nonPreferredNamePanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.setBackground(new Color(200, 205, 232));
            nonPreferredNamePanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //---- label_subjectScopeNote4 ----
            label_subjectScopeNote4.setText("Non-Preferred Forms");
            label_subjectScopeNote4.setVerticalAlignment(SwingConstants.TOP);
            label_subjectScopeNote4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(label_subjectScopeNote4,
                    cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

                //---- nonPreferredNamesTable ----
                nonPreferredNamesTable.setPreferredScrollableViewportSize(new Dimension(450, 120));
                nonPreferredNamesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        nonPreferredNamesTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(nonPreferredNamesTable);
            }
            nonPreferredNamePanel.add(scrollPane1,
                    cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel1 ========
            {
                panel1.setBackground(new Color(231, 188, 251));
                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, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addNonPreferredNameButton ----
                addNonPreferredNameButton.setText("Add Non-Preferred Form");
                addNonPreferredNameButton.setOpaque(false);
                addNonPreferredNameButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addNonPreferredNameButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNonPreferredNameButtonActionPerformed();
                    }
                });
                panel1.add(addNonPreferredNameButton, cc.xy(1, 1));

                //---- removeNonPreferredNameButton ----
                removeNonPreferredNameButton.setText("Remove Non-Preferred Form");
                removeNonPreferredNameButton.setOpaque(false);
                removeNonPreferredNameButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNonPreferredNameButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNonPreferredNameButtonActionPerformed();
                    }
                });
                panel1.add(removeNonPreferredNameButton, cc.xy(3, 1));
            }
            nonPreferredNamePanel.add(panel1,
                    cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator1 ----
            separator1.setBackground(new Color(220, 220, 232));
            separator1.setForeground(new Color(147, 131, 86));
            separator1.setMinimumSize(new Dimension(1, 10));
            separator1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(separator1, cc.xy(1, 7));

            //---- label_subjectScopeNote3 ----
            label_subjectScopeNote3.setText("Accessions");
            label_subjectScopeNote3.setVerticalAlignment(SwingConstants.TOP);
            label_subjectScopeNote3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(label_subjectScopeNote3,
                    cc.xywh(1, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

                //---- accessionsTable ----
                accessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 120));
                scrollPane5.setViewportView(accessionsTable);
            }
            nonPreferredNamePanel.add(scrollPane5, cc.xy(1, 11));

            //---- separator2 ----
            separator2.setBackground(new Color(220, 220, 232));
            separator2.setForeground(new Color(147, 131, 86));
            separator2.setMinimumSize(new Dimension(1, 10));
            separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(separator2, cc.xy(1, 13));

            //---- label_subjectScopeNote2 ----
            label_subjectScopeNote2.setText("Resources");
            label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
            label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(label_subjectScopeNote2, cc.xy(1, 15));

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

                //---- resourcesTable ----
                resourcesTable.setPreferredScrollableViewportSize(new Dimension(450, 120));
                scrollPane4.setViewportView(resourcesTable);
            }
            nonPreferredNamePanel.add(scrollPane4, cc.xy(1, 17));

            //---- label1 ----
            label1.setText("Resources in Red have the subject term linked at the component level");
            label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(label1, cc.xy(1, 19));

            //---- separator4 ----
            separator4.setBackground(new Color(220, 220, 232));
            separator4.setForeground(new Color(147, 131, 86));
            separator4.setMinimumSize(new Dimension(1, 10));
            separator4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(separator4, cc.xy(1, 21));

            //---- label_subjectScopeNote5 ----
            label_subjectScopeNote5.setText("Digital Objects");
            label_subjectScopeNote5.setVerticalAlignment(SwingConstants.TOP);
            label_subjectScopeNote5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(label_subjectScopeNote5, cc.xy(1, 23));

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

                //---- digitalObjectsTable ----
                digitalObjectsTable.setPreferredScrollableViewportSize(new Dimension(450, 120));
                scrollPane6.setViewportView(digitalObjectsTable);
            }
            nonPreferredNamePanel.add(scrollPane6, cc.xy(1, 25));
        }
        tabbedPane.addTab("Non-Preferred Forms, Accessions, Resources & Digital Objects",
                nonPreferredNamePanel);

        //======== contactInfoPanel ========
        {
            contactInfoPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contactInfoPanel.setBackground(new Color(200, 205, 232));
            contactInfoPanel.setBorder(Borders.DLU2_BORDER);
            contactInfoPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("max(default;100px):grow"), 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) },
                    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,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //---- label_nameContactAddress3 ----
            label_nameContactAddress3.setText("Salutation");
            label_nameContactAddress3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactAddress3, Names.class, Names.PROPERTYNAME_SALUTATION);
            contactInfoPanel.add(label_nameContactAddress3, cc.xy(1, 1));
            contactInfoPanel.add(salutation, cc.xywh(3, 1, 9, 1));

            //---- label_nameContactAddress1 ----
            label_nameContactAddress1.setText("Address");
            label_nameContactAddress1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactAddress1, Names.class,
                    Names.PROPERTYNAME_CONTACT_ADDRESS_1);
            contactInfoPanel.add(label_nameContactAddress1, cc.xy(1, 3));
            contactInfoPanel.add(nameContactAddress1, cc.xywh(3, 3, 9, 1));

            //---- label_nameContactAddress2 ----
            label_nameContactAddress2.setText("Address");
            label_nameContactAddress2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactAddress2, Names.class,
                    Names.PROPERTYNAME_CONTACT_ADDRESS_2);
            contactInfoPanel.add(label_nameContactAddress2, cc.xy(1, 5));
            contactInfoPanel.add(nameContactAddress2, cc.xywh(3, 5, 9, 1));

            //---- label_nameContactCity ----
            label_nameContactCity.setText("City");
            label_nameContactCity.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactCity, Names.class, Names.PROPERTYNAME_CONTACT_CITY);
            contactInfoPanel.add(label_nameContactCity, cc.xy(1, 7));
            contactInfoPanel.add(nameContactCity, cc.xy(3, 7));

            //---- label_nameContactRegion ----
            label_nameContactRegion.setText("Region");
            label_nameContactRegion.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactRegion, Names.class,
                    Names.PROPERTYNAME_CONTACT_REGION);
            contactInfoPanel.add(label_nameContactRegion, cc.xy(5, 7));
            contactInfoPanel.add(nameContactRegion, cc.xy(7, 7));

            //---- label_nameContactMailCode ----
            label_nameContactMailCode.setText("Mail Code");
            label_nameContactMailCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactMailCode, Names.class,
                    Names.PROPERTYNAME_CONTACT_MAIL_CODE);
            contactInfoPanel.add(label_nameContactMailCode, cc.xy(9, 7));
            contactInfoPanel.add(nameContactMailCode, cc.xy(11, 7));

            //---- label_nameContactCountry ----
            label_nameContactCountry.setText("Country");
            label_nameContactCountry.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactCountry, Names.class,
                    Names.PROPERTYNAME_CONTACT_COUNTRY);
            contactInfoPanel.add(label_nameContactCountry, cc.xy(1, 9));
            contactInfoPanel.add(nameContactCountry, cc.xywh(3, 9, 9, 1));

            //---- label_nameContactPhone ----
            label_nameContactPhone.setText("Telephone");
            label_nameContactPhone.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactPhone, Names.class, Names.PROPERTYNAME_CONTACT_PHONE);
            contactInfoPanel.add(label_nameContactPhone, cc.xy(1, 11));
            contactInfoPanel.add(nameContactPhone, cc.xywh(3, 11, 5, 1));

            //---- label_nameContactFax ----
            label_nameContactFax.setText("FAX");
            label_nameContactFax.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactFax, Names.class, Names.PROPERTYNAME_CONTACT_FAX);
            contactInfoPanel.add(label_nameContactFax, cc.xy(9, 11));
            contactInfoPanel.add(nameContactFax, cc.xy(11, 11));

            //---- label_nameContactEmail ----
            label_nameContactEmail.setText("e-mail");
            label_nameContactEmail.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactEmail, Names.class, Names.PROPERTYNAME_CONTACT_EMAIL);
            contactInfoPanel.add(label_nameContactEmail, cc.xy(1, 13));
            contactInfoPanel.add(nameContactEmail, cc.xywh(3, 13, 9, 1));

            //---- label_nameContactName ----
            label_nameContactName.setText("Contact");
            label_nameContactName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_nameContactName, Names.class, Names.PROPERTYNAME_CONTACT_NAME);
            contactInfoPanel.add(label_nameContactName, cc.xy(1, 15));
            contactInfoPanel.add(nameContactName, cc.xywh(3, 15, 9, 1));

            //---- label_nameContactNotes ----
            label_nameContactNotes.setText("Notes");
            label_nameContactNotes.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contactInfoPanel.add(label_nameContactNotes,
                    cc.xywh(1, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

                //---- nameContactNotesTable ----
                nameContactNotesTable.setPreferredScrollableViewportSize(new Dimension(450, 150));
                nameContactNotesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mousePressed(MouseEvent e) {
                        nameContactNotesTableMousePressed(e);
                    }

                    @Override
                    public void mouseReleased(MouseEvent e) {
                        nameContactNotesTableMouseReleased(e);
                    }

                    @Override
                    public void mouseClicked(MouseEvent e) {
                        nameContactNotesTableMouseClicked(e);
                    }
                });
                scrollPane3.setViewportView(nameContactNotesTable);
            }
            contactInfoPanel.add(scrollPane3, cc.xywh(3, 17, 9, 1));

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

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

                //---- removeContactNoteButton ----
                removeContactNoteButton.setText("Remove Contact Note");
                removeContactNoteButton.setOpaque(false);
                removeContactNoteButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeContactNoteButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeContactNoteButtonActionPerformed();
                    }
                });
                panel2.add(removeContactNoteButton, cc.xy(3, 1));
            }
            contactInfoPanel.add(panel2, cc.xywh(3, 19, 9, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Contact Info", contactInfoPanel);

    }
    add(tabbedPane, cc.xy(1, 2));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.NamePersonalFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel3 = new JPanel();
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    panel1 = new JPanel();
    label_namePersonalPrefix = new JLabel();
    namePersonalPrefix = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_PREFIX));
    label_namePersonalPrimaryName = new JLabel();
    namePersonalPrimaryName = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_PRIMARY_NAME));
    label_namePersonalRestOfName = new JLabel();
    namePersonalRestOfName = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_REST_OF_NAME));
    label_namePersonalSuffix2 = new JLabel();
    namePersonalTitle = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_TITLE));
    label_namePersonalSuffix = new JLabel();
    namePersonalSuffix = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_SUFFIX));
    label_namePersonalNumber = new JLabel();
    namePersonalNumber = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_NUMBER));
    separator1 = new JSeparator();
    rightSidePanel = new JPanel();
    label_namePersonalDates = new JLabel();
    namePersonalDates = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_DATES));
    label_namePersonalQualifier = new JLabel();
    namePersonalQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_QUALIFIER));
    label_namePersonalFullerForm = new JLabel();
    namePersonalFullerForm = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_PERSONAL_FULLER_FORM));
    label_nameSource = new JLabel();
    nameSource = ATBasicComponentFactory.createComboBox(parentPresentationModel, Names.PROPERTYNAME_NAME_SOURCE,
            Names.class);
    label_nameRule = new JLabel();
    nameRule = ATBasicComponentFactory.createComboBox(parentPresentationModel, Names.PROPERTYNAME_NAME_RULE,
            Names.class);
    namePersonalDirectOrder = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            Names.PROPERTYNAME_PERSONAL_DIRECT_ORDER, Names.class);
    separator3 = new JSeparator();
    panel4 = new JPanel();
    label_sortName = new JLabel();
    sortName = ATBasicComponentFactory/*from  www.  j a  va2 s.co  m*/
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_SORT_NAME));
    namePersonalDirectOrder2 = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            Names.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY, Names.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.RELATED_GAP_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.RELATED_GAP_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

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

        //---- nameTypeLabel ----
        nameTypeLabel.setText("Name Identity Record:");
        nameTypeLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.add(nameTypeLabel, cc.xy(1, 1));

        //---- nameType ----
        nameType.setText("nameType");
        nameType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel3.add(nameType, cc.xy(3, 1));
    }
    add(panel3, cc.xywh(1, 1, 5, 1));

    //======== panel1 ========
    {
        panel1.setOpaque(false);
        panel1.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, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));

        //---- label_namePersonalPrefix ----
        label_namePersonalPrefix.setText("Prefix");
        label_namePersonalPrefix.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalPrefix, Names.class, Names.PROPERTYNAME_PERSONAL_PREFIX);
        panel1.add(label_namePersonalPrefix, cc.xy(1, 1));

        //---- namePersonalPrefix ----
        namePersonalPrefix.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalPrefix, cc.xy(3, 1));

        //---- label_namePersonalPrimaryName ----
        label_namePersonalPrimaryName.setText("Primary Name");
        label_namePersonalPrimaryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalPrimaryName, Names.class,
                Names.PROPERTYNAME_PERSONAL_PRIMARY_NAME);
        panel1.add(label_namePersonalPrimaryName, cc.xy(1, 3));

        //---- namePersonalPrimaryName ----
        namePersonalPrimaryName.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalPrimaryName, cc.xy(3, 3));

        //---- label_namePersonalRestOfName ----
        label_namePersonalRestOfName.setText("Rest of Name");
        label_namePersonalRestOfName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalRestOfName, Names.class,
                Names.PROPERTYNAME_PERSONAL_REST_OF_NAME);
        panel1.add(label_namePersonalRestOfName, cc.xy(1, 5));

        //---- namePersonalRestOfName ----
        namePersonalRestOfName.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalRestOfName, cc.xy(3, 5));

        //---- label_namePersonalSuffix2 ----
        label_namePersonalSuffix2.setText("Title");
        label_namePersonalSuffix2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalSuffix2, Names.class, Names.PROPERTYNAME_PERSONAL_TITLE);
        panel1.add(label_namePersonalSuffix2, cc.xy(1, 7));

        //---- namePersonalTitle ----
        namePersonalTitle.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalTitle, cc.xy(3, 7));

        //---- label_namePersonalSuffix ----
        label_namePersonalSuffix.setText("Suffix");
        label_namePersonalSuffix.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalSuffix, Names.class, Names.PROPERTYNAME_PERSONAL_SUFFIX);
        panel1.add(label_namePersonalSuffix, cc.xy(1, 9));

        //---- namePersonalSuffix ----
        namePersonalSuffix.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalSuffix, cc.xy(3, 9));

        //---- label_namePersonalNumber ----
        label_namePersonalNumber.setText("Number");
        label_namePersonalNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalNumber, Names.class, Names.PROPERTYNAME_NUMBER);
        panel1.add(label_namePersonalNumber, cc.xy(1, 11));

        //---- namePersonalNumber ----
        namePersonalNumber.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        panel1.add(namePersonalNumber, cc.xy(3, 11));
    }
    add(panel1, cc.xy(1, 3));

    //---- separator1 ----
    separator1.setOrientation(SwingConstants.VERTICAL);
    add(separator1, cc.xywh(3, 3, 1, 1, CellConstraints.CENTER, CellConstraints.FILL));

    //======== rightSidePanel ========
    {
        rightSidePanel.setOpaque(false);
        rightSidePanel.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, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));

        //---- label_namePersonalDates ----
        label_namePersonalDates.setText("Dates");
        label_namePersonalDates.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalDates, Names.class, Names.PROPERTYNAME_PERSONAL_DATES);
        rightSidePanel.add(label_namePersonalDates, cc.xy(1, 1));

        //---- namePersonalDates ----
        namePersonalDates.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        rightSidePanel.add(namePersonalDates, cc.xy(3, 1));

        //---- label_namePersonalQualifier ----
        label_namePersonalQualifier.setText("Qualifier");
        label_namePersonalQualifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalQualifier, Names.class, Names.PROPERTYNAME_QUALIFIER);
        rightSidePanel.add(label_namePersonalQualifier, cc.xy(1, 3));

        //---- namePersonalQualifier ----
        namePersonalQualifier.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        rightSidePanel.add(namePersonalQualifier, cc.xy(3, 3));

        //---- label_namePersonalFullerForm ----
        label_namePersonalFullerForm.setText("Fuller Form");
        label_namePersonalFullerForm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_namePersonalFullerForm, Names.class,
                Names.PROPERTYNAME_PERSONAL_FULLER_FORM);
        rightSidePanel.add(label_namePersonalFullerForm, cc.xy(1, 5));

        //---- namePersonalFullerForm ----
        namePersonalFullerForm.addFocusListener(new FocusAdapter() {
            @Override
            public void focusLost(FocusEvent e) {
                sortNameConstruction(e);
            }
        });
        rightSidePanel.add(namePersonalFullerForm, cc.xy(3, 5));

        //---- label_nameSource ----
        label_nameSource.setText("Source");
        label_nameSource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_nameSource, Names.class, Names.PROPERTYNAME_NAME_SOURCE);
        rightSidePanel.add(label_nameSource, cc.xy(1, 7));

        //---- nameSource ----
        nameSource.setOpaque(false);
        nameSource.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                sortNameConstruction(e);
            }
        });
        rightSidePanel.add(nameSource, cc.xywh(3, 7, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- label_nameRule ----
        label_nameRule.setText("Rules");
        label_nameRule.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_nameRule, Names.class, Names.PROPERTYNAME_NAME_RULE);
        rightSidePanel.add(label_nameRule, cc.xy(1, 9));

        //---- nameRule ----
        nameRule.setOpaque(false);
        nameRule.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                sortNameConstruction(e);
            }
        });
        rightSidePanel.add(nameRule, cc.xywh(3, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- namePersonalDirectOrder ----
        namePersonalDirectOrder.setText("Direct Order");
        namePersonalDirectOrder.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        namePersonalDirectOrder.setOpaque(false);
        namePersonalDirectOrder.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                namePersonalDirectOrderStateChanged(e);
            }
        });
        namePersonalDirectOrder
                .setText(ATFieldInfo.getLabel(Names.class, Names.PROPERTYNAME_PERSONAL_DIRECT_ORDER));
        rightSidePanel.add(namePersonalDirectOrder, cc.xywh(1, 11, 3, 1));
    }
    add(rightSidePanel, cc.xy(5, 3));

    //---- separator3 ----
    separator3.setBackground(new Color(220, 220, 232));
    separator3.setForeground(new Color(147, 131, 86));
    separator3.setMinimumSize(new Dimension(1, 10));
    separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(separator3, cc.xywh(1, 5, 5, 1));

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

        //---- label_sortName ----
        label_sortName.setText("Sort Name");
        label_sortName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_sortName, Names.class, Names.PROPERTYNAME_SORT_NAME);
        panel4.add(label_sortName, cc.xy(1, 1));
        panel4.add(sortName, cc.xy(3, 1));

        //---- namePersonalDirectOrder2 ----
        namePersonalDirectOrder2.setText("Create automatically");
        namePersonalDirectOrder2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        namePersonalDirectOrder2.setOpaque(false);
        namePersonalDirectOrder2.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                createAutomaticallyStateChanged(e);
            }
        });
        namePersonalDirectOrder2
                .setText(ATFieldInfo.getLabel(Names.class, Names.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY));
        panel4.add(namePersonalDirectOrder2, cc.xy(5, 1));
    }
    add(panel4, cc.xywh(1, 7, 5, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.rde.RapidResourceComponentDataEntry.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();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPanel = new JPanel();
    panel4 = new JPanel();
    label_resourcesLevel = new JLabel();
    level = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils
            .getLookupListValues(ResourcesComponents.class, ResourcesComponents.PROPERTYNAME_LEVEL));
    internalOnly = new JCheckBox();
    restrictionsApply = new JCheckBox();
    panel13 = new JPanel();
    label_resourcesTitle2 = new JLabel();
    componentTitle = new JTextField();
    label_resourcesLevel2 = new JLabel();
    componentUniqueIdentifier = new JTextField();
    panel5 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    dateExpression = new JTextField();
    label_resourcesDateBegin = new JLabel();
    dateBegin = ATBasicComponentFactory.createUnboundIntegerField(false);
    label_resourcesDateEnd = new JLabel();
    dateEnd = ATBasicComponentFactory.createUnboundIntegerField(false);
    panel6 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    extent = ATBasicComponentFactory.createUnboundDoubleField();
    label_resourcesExtentNumber2 = new JLabel();
    extentType = ATBasicComponentFactory.createUnboundComboBox(
            LookupListUtils.getLookupListValues(Resources.class, Resources.PROPERTYNAME_EXTENT_TYPE));
    separator3 = new JSeparator();
    panel9 = new JPanel();
    label_resourcesExtentNumber4 = new JLabel();
    noteType1 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane1 = new JScrollPane();
    note1 = new JTextArea();
    separator4 = new JSeparator();
    panel10 = new JPanel();
    label_resourcesExtentNumber6 = new JLabel();
    noteType2 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane2 = new JScrollPane();
    note2 = new JTextArea();
    separator5 = new JSeparator();
    panel11 = new JPanel();
    label_resourcesExtentNumber7 = new JLabel();
    noteType3 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane3 = new JScrollPane();
    note3 = new JTextArea();
    separator6 = new JSeparator();
    panel12 = new JPanel();
    label_resourcesExtentNumber3 = new JLabel();
    instanceType = new JComboBox();
    panel7 = new JPanel();
    label_subjectTermType = new JLabel();
    container1Type = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_TYPE));
    label_subjectSource = new JLabel();
    container1Number = ATBasicComponentFactory.createUnboundDoubleField();
    label_subjectSource3 = new JLabel();
    container1AlphaNum = new JTextField();
    panel8 = new JPanel();
    label_subjectTermType2 = new JLabel();
    container2Type = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_TYPE));
    label_subjectSource2 = new JLabel();
    container2Number = ATBasicComponentFactory.createUnboundDoubleField();
    label_subjectSource4 = new JLabel();
    container2AlphaNum = new JTextField();
    panel14 = new JPanel();
    label_resourcesExtentNumber5 = new JLabel();
    barcode = new JTextField();
    panel1 = new JPanel();
    separator2 = new JSeparator();
    buttonPanel = new JPanel();
    cancelButton = new JButton();
    okButton = new JButton();
    okAndAnotherButton = new JButton();
    cancelButtonLabel = new JLabel();
    okButtonLabel = new JLabel();
    okAndAnotherButtonLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setModal(true);/*from   w  w  w.jav a2  s .  c om*/
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

        //======== HeaderPanel ========
        {
            HeaderPanel.setBackground(new Color(80, 69, 57));
            HeaderPanel.setOpaque(false);
            HeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            HeaderPanel
                    .setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(
                                            Sizes.bounded(Sizes.MINIMUM, Sizes.dluX(100), Sizes.dluX(200))),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            RowSpec.decodeSpecs("default")));

            //======== panel2 ========
            {
                panel2.setBackground(new Color(73, 43, 104));
                panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- mainHeaderLabel ----
                mainHeaderLabel.setText("Resources");
                mainHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                mainHeaderLabel.setForeground(Color.white);
                panel2.add(mainHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel2, cc.xy(1, 1));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(66, 60, 111));
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Rapid Data Entry");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                panel3.add(subHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel3, cc.xy(2, 1));
        }
        dialogPane.add(HeaderPanel, BorderLayout.NORTH);

        //======== contentPanel ========
        {
            contentPanel.setOpaque(false);
            contentPanel.setBorder(Borders.DIALOG_BORDER);
            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, 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, 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 }));

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

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

                //---- level ----
                level.setOpaque(false);
                panel4.add(level, cc.xy(3, 1));

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

                //---- restrictionsApply ----
                restrictionsApply.setText("Restrictions Apply");
                restrictionsApply.setOpaque(false);
                restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply.setText(ATFieldInfo.getLabel(ResourcesComponents.class,
                        ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
                panel4.add(restrictionsApply, cc.xy(7, 1));
            }
            contentPanel.add(panel4, cc.xywh(1, 1, 3, 1));

            //======== panel13 ========
            {
                panel13.setOpaque(false);
                panel13.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_resourcesTitle2 ----
                label_resourcesTitle2.setText("Title");
                label_resourcesTitle2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesTitle2, Resources.class,
                        Resources.PROPERTYNAME_TITLE);
                panel13.add(label_resourcesTitle2, cc.xy(1, 1));
                panel13.add(componentTitle, cc.xy(3, 1));
            }
            contentPanel.add(panel13, cc.xywh(1, 3, 3, 1));

            //---- 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);
            contentPanel.add(label_resourcesLevel2,
                    cc.xywh(1, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            contentPanel.add(componentUniqueIdentifier, cc.xy(3, 5));

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

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

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

                //---- dateBegin ----
                dateBegin.setColumns(5);
                panel5.add(dateBegin, cc.xywh(7, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

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

                //---- dateEnd ----
                dateEnd.setColumns(5);
                panel5.add(dateEnd, cc.xywh(11, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel5, cc.xywh(1, 7, 3, 1));

            //======== panel6 ========
            {
                panel6.setOpaque(false);
                panel6.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,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        RowSpec.decodeSpecs("default")));

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

                //---- extent ----
                extent.setColumns(5);
                panel6.add(extent, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_resourcesExtentNumber2 ----
                label_resourcesExtentNumber2.setText("Extent Type");
                label_resourcesExtentNumber2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber2, Resources.class,
                        Resources.PROPERTYNAME_EXTENT_TYPE);
                panel6.add(label_resourcesExtentNumber2,
                        cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- extentType ----
                extentType.setOpaque(false);
                panel6.add(extentType, cc.xywh(7, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel6, cc.xywh(1, 9, 3, 1));

            //---- separator3 ----
            separator3.setBackground(new Color(220, 220, 232));
            separator3.setForeground(new Color(147, 131, 86));
            separator3.setMinimumSize(new Dimension(1, 10));
            separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.add(separator3, cc.xywh(1, 11, 3, 1));

            //======== panel9 ========
            {
                panel9.setOpaque(false);
                panel9.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_resourcesExtentNumber4 ----
                label_resourcesExtentNumber4.setText("Note 1");
                label_resourcesExtentNumber4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel9.add(label_resourcesExtentNumber4,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

                //---- note1 ----
                note1.setRows(4);
                note1.setWrapStyleWord(true);
                note1.setLineWrap(true);
                scrollPane1.setViewportView(note1);
            }
            contentPanel.add(scrollPane1, cc.xywh(1, 15, 3, 1));

            //---- separator4 ----
            separator4.setBackground(new Color(220, 220, 232));
            separator4.setForeground(new Color(147, 131, 86));
            separator4.setMinimumSize(new Dimension(1, 10));
            separator4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.add(separator4, cc.xywh(1, 17, 3, 1));

            //======== panel10 ========
            {
                panel10.setOpaque(false);
                panel10.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_resourcesExtentNumber6 ----
                label_resourcesExtentNumber6.setText("Note 2");
                label_resourcesExtentNumber6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel10.add(label_resourcesExtentNumber6,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

                //---- note2 ----
                note2.setRows(4);
                note2.setWrapStyleWord(true);
                note2.setLineWrap(true);
                scrollPane2.setViewportView(note2);
            }
            contentPanel.add(scrollPane2, cc.xywh(1, 21, 3, 1));

            //---- separator5 ----
            separator5.setBackground(new Color(220, 220, 232));
            separator5.setForeground(new Color(147, 131, 86));
            separator5.setMinimumSize(new Dimension(1, 10));
            separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.add(separator5, cc.xywh(1, 23, 3, 1));

            //======== panel11 ========
            {
                panel11.setOpaque(false);
                panel11.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_resourcesExtentNumber7 ----
                label_resourcesExtentNumber7.setText("Note 3");
                label_resourcesExtentNumber7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel11.add(label_resourcesExtentNumber7,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

            //======== scrollPane3 ========
            {

                //---- note3 ----
                note3.setRows(4);
                note3.setWrapStyleWord(true);
                note3.setLineWrap(true);
                scrollPane3.setViewportView(note3);
            }
            contentPanel.add(scrollPane3, cc.xywh(1, 27, 3, 1));

            //---- separator6 ----
            separator6.setBackground(new Color(220, 220, 232));
            separator6.setForeground(new Color(147, 131, 86));
            separator6.setMinimumSize(new Dimension(1, 10));
            separator6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.add(separator6, cc.xywh(1, 29, 3, 1));

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

                //---- label_resourcesExtentNumber3 ----
                label_resourcesExtentNumber3.setText("Instance Type");
                label_resourcesExtentNumber3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber3, ArchDescriptionInstances.class,
                        ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
                panel12.add(label_resourcesExtentNumber3,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- instanceType ----
                instanceType.setOpaque(false);
                panel12.add(instanceType, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel12, cc.xywh(1, 31, 3, 1));

            //======== panel7 ========
            {
                panel7.setOpaque(false);
                panel7.setPreferredSize(new Dimension(900, 27));
                panel7.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, 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_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);
                panel7.add(label_subjectTermType, cc.xy(1, 1));

                //---- container1Type ----
                container1Type.setOpaque(false);
                panel7.add(container1Type, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_subjectSource ----
                label_subjectSource.setText("Container 1 Numeric Indicator");
                label_subjectSource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_subjectSource, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_NUMERIC_INDICATOR);
                panel7.add(label_subjectSource, cc.xy(5, 1));

                //---- container1Number ----
                container1Number.setColumns(5);
                panel7.add(container1Number,
                        cc.xywh(7, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_subjectSource3 ----
                label_subjectSource3.setText("Container 1 Alphanumeric Indicator");
                label_subjectSource3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_subjectSource3, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_ALPHA_NUMERIC_INDICATOR);
                panel7.add(label_subjectSource3, cc.xy(9, 1));
                panel7.add(container1AlphaNum,
                        cc.xywh(11, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel7, cc.xywh(1, 33, 3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //======== panel8 ========
            {
                panel8.setOpaque(false);
                panel8.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, 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_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);
                panel8.add(label_subjectTermType2, cc.xy(1, 1));

                //---- container2Type ----
                container2Type.setOpaque(false);
                panel8.add(container2Type, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_subjectSource2 ----
                label_subjectSource2.setText("Container 2 Numeric Indicator");
                label_subjectSource2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_subjectSource2, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_NUMERIC_INDICATOR);
                panel8.add(label_subjectSource2, cc.xy(5, 1));

                //---- container2Number ----
                container2Number.setColumns(5);
                panel8.add(container2Number,
                        cc.xywh(7, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_subjectSource4 ----
                label_subjectSource4.setText("Container 2 Alphanumeric Indicator");
                label_subjectSource4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_subjectSource4, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_ALPHA_NUMERIC_INDICATOR);
                panel8.add(label_subjectSource4, cc.xy(9, 1));
                panel8.add(container2AlphaNum,
                        cc.xywh(11, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel8, cc.xywh(1, 35, 3, 1));

            //======== panel14 ========
            {
                panel14.setOpaque(false);
                panel14.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_resourcesExtentNumber5 ----
                label_resourcesExtentNumber5.setText("Barcode");
                label_resourcesExtentNumber5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber5, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE);
                panel14.add(label_resourcesExtentNumber5,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                panel14.add(barcode, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel14, cc.xywh(1, 37, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== panel1 ========
        {
            panel1.setOpaque(false);
            panel1.setBorder(Borders.DLU2_BORDER);
            panel1.setLayout(new FormLayout("default:grow", "default, default:grow"));

            //---- separator2 ----
            separator2.setBackground(new Color(220, 220, 232));
            separator2.setForeground(new Color(147, 131, 86));
            separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(separator2, cc.xy(1, 1));

            //======== buttonPanel ========
            {
                buttonPanel.setBorder(null);
                buttonPanel.setBackground(new Color(200, 205, 232));
                buttonPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.setMinimumSize(new Dimension(380, 60));
                buttonPanel
                        .setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default, default")));

                //---- cancelButton ----
                cancelButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/cancel.jpg")));
                cancelButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                cancelButton.setOpaque(false);
                cancelButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        cancelButtonActionPerformed();
                    }
                });
                buttonPanel.add(cancelButton, cc.xy(1, 1));

                //---- okButton ----
                okButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/ok.jpg")));
                okButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                okButton.setOpaque(false);
                okButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        okButtonActionPerformed();
                    }
                });
                buttonPanel.add(okButton, cc.xy(3, 1));

                //---- okAndAnotherButton ----
                okAndAnotherButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/okPlus1.jpg")));
                okAndAnotherButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                okAndAnotherButton.setOpaque(false);
                okAndAnotherButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        okAndAnotherButtonActionPerformed();
                    }
                });
                buttonPanel.add(okAndAnotherButton, cc.xy(5, 1));

                //---- cancelButtonLabel ----
                cancelButtonLabel.setText("Cancel");
                cancelButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(cancelButtonLabel,
                        cc.xywh(1, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- okButtonLabel ----
                okButtonLabel.setText("OK");
                okButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(okButtonLabel,
                        cc.xywh(3, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- okAndAnotherButtonLabel ----
                okAndAnotherButtonLabel.setText("OK + 1");
                okAndAnotherButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(okAndAnotherButtonLabel,
                        cc.xywh(5, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            panel1.add(buttonPanel, cc.xywh(1, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        dialogPane.add(panel1, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.rde.RapidResourceComponentDataEntry2.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();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPanel = new JPanel();
    temp = new JButton();
    panel1 = new JPanel();
    separator2 = new JSeparator();
    buttonPanel = new JPanel();
    autoSaveCheckBox = new JCheckBox();
    cancelButton = new JButton();
    okButton = new JButton();
    okAndAnotherButton = new JButton();
    cancelButtonLabel = new JLabel();
    okButtonLabel = new JLabel();
    okAndAnotherButtonLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {
        dialogPane.setBorder(null);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setLayout(new FormLayout("default:grow", "fill:default, fill:default:grow, fill:default"));

        //======== HeaderPanel ========
        {
            HeaderPanel.setBackground(new Color(80, 69, 57));
            HeaderPanel.setOpaque(false);
            HeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            HeaderPanel
                    .setLayout(new FormLayout(
                            new ColumnSpec[] {
                                    new ColumnSpec(
                                            Sizes.bounded(Sizes.MINIMUM, Sizes.dluX(100), Sizes.dluX(200))),
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            RowSpec.decodeSpecs("default")));

            //======== panel2 ========
            {
                panel2.setBackground(new Color(73, 43, 104));
                panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- mainHeaderLabel ----
                mainHeaderLabel.setText("Resources");
                mainHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                mainHeaderLabel.setForeground(Color.white);
                panel2.add(mainHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel2, cc.xy(1, 1));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(66, 60, 111));
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Rapid Data Entry");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                panel3.add(subHeaderLabel, cc.xy(2, 2));
            }
            HeaderPanel.add(panel3, cc.xy(2, 1));
        }
        dialogPane.add(HeaderPanel, cc.xy(1, 1));

        //======== contentPanel ========
        {
            contentPanel.setOpaque(false);
            contentPanel.setBorder(Borders.DLU4_BORDER);
            contentPanel.setMaximumSize(new Dimension(1000, 600));
            contentPanel.setBackground(new Color(200, 205, 232));
            contentPanel.setLayout(new FormLayout("center:default:grow", "top:default:grow"));

            //---- temp ----
            temp.setText("text");
            temp.setBackground(new Color(200, 205, 232));
            contentPanel.add(temp, cc.xy(1, 1));
        }
        dialogPane.add(contentPanel, cc.xy(1, 2));

        //======== panel1 ========
        {
            panel1.setOpaque(false);
            panel1.setBorder(Borders.DLU2_BORDER);
            panel1.setLayout(new FormLayout("default:grow", "default, default:grow"));

            //---- separator2 ----
            separator2.setBackground(new Color(220, 220, 232));
            separator2.setForeground(new Color(147, 131, 86));
            separator2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel1.add(separator2, cc.xy(1, 1));

            //======== buttonPanel ========
            {
                buttonPanel.setBorder(null);
                buttonPanel.setBackground(new Color(200, 205, 232));
                buttonPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel
                        .setLayout(
                                new FormLayout(
                                        new ColumnSpec[] {
                                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                        FormSpec.DEFAULT_GROW),
                                                FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                                FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                                FormFactory.UNRELATED_GAP_COLSPEC,
                                                FormFactory.DEFAULT_COLSPEC },
                                        RowSpec.decodeSpecs("default, default")));

                //---- autoSaveCheckBox ----
                autoSaveCheckBox.setText("Auto Save");
                autoSaveCheckBox.setSelected(true);
                autoSaveCheckBox.setOpaque(false);
                buttonPanel.add(autoSaveCheckBox, cc.xy(1, 1));

                //---- cancelButton ----
                cancelButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/cancel.jpg")));
                cancelButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                cancelButton.setOpaque(false);
                cancelButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        cancelButtonActionPerformed();
                    }
                });
                buttonPanel.add(cancelButton, cc.xy(3, 1));

                //---- okButton ----
                okButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/ok.jpg")));
                okButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                okButton.setOpaque(false);
                okButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        okButtonActionPerformed();
                    }
                });
                buttonPanel.add(okButton, cc.xy(5, 1));

                //---- okAndAnotherButton ----
                okAndAnotherButton.setIcon(new ImageIcon(
                        getClass().getResource("/org/archiviststoolkit/resources/images/okPlus1.jpg")));
                okAndAnotherButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                okAndAnotherButton.setOpaque(false);
                okAndAnotherButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        okAndAnotherButtonActionPerformed();
                    }
                });
                buttonPanel.add(okAndAnotherButton, cc.xy(7, 1));

                //---- cancelButtonLabel ----
                cancelButtonLabel.setText("Cancel");
                cancelButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(cancelButtonLabel,
                        cc.xywh(3, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- okButtonLabel ----
                okButtonLabel.setText("OK");
                okButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(okButtonLabel,
                        cc.xywh(5, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- okAndAnotherButtonLabel ----
                okAndAnotherButtonLabel.setText("+ 1");
                okAndAnotherButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                buttonPanel.add(okAndAnotherButtonLabel,
                        cc.xywh(7, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            panel1.add(buttonPanel, cc.xywh(1, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        dialogPane.add(panel1, cc.xy(1, 3));
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(1000, 840);
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}