Example usage for com.jgoodies.forms.layout Sizes DEFAULT

List of usage examples for com.jgoodies.forms.layout Sizes DEFAULT

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout Sizes DEFAULT.

Prototype

ComponentSize DEFAULT

To view the source code for com.jgoodies.forms.layout Sizes DEFAULT.

Click Source Link

Document

Use the maximum of all component sizes as column or row size; measures preferred sizes when asked for the preferred size and minimum sizes when asked for the minimum size.

Usage

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.j av  a  2 s  .c  om*/
    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  ww. j av  a 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, 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.LookupListFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label1 = new JLabel();
    listName = ATBasicComponentFactory/*  w w w. j  a v  a2  s.  c o m*/
            .createTextField(detailsModel.getModel(LookupList.PROPERTYNAME_LIST_NAME));
    panel3 = new JPanel();
    pairedValues = ATBasicComponentFactory.createCheckBox(detailsModel, LookupList.PROPERTYNAME_PAIRED_VALUES,
            LookupList.class);
    pairedValues2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            LookupList.PROPERTYNAME_RESTRICT_TO_NMTOKEN, LookupList.class);
    panel1 = new JPanel();
    scrollPane1 = new JScrollPane();
    listItems = new DomainSortableTable();
    panel2 = new JPanel();
    addItem = new JButton();
    removeItem = new JButton();
    changeItem = new JButton();
    mergeItems = new JButton();
    importItems = new JButton();
    showRecordCount = new JButton();
    label3 = new JLabel();
    label2 = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setPreferredSize(new Dimension(800, 500));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;400px):grow") },
            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

    //---- label1 ----
    label1.setText("List Name");
    label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(label1, cc.xy(1, 1));
    add(listName, cc.xy(3, 1));

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

        //---- pairedValues ----
        pairedValues.setText("Paired values");
        pairedValues.setOpaque(false);
        pairedValues.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        pairedValues.setEnabled(false);
        pairedValues.setText(ATFieldInfo.getLabel(LookupList.class, LookupList.PROPERTYNAME_PAIRED_VALUES));
        panel3.add(pairedValues, cc.xy(1, 1));

        //---- pairedValues2 ----
        pairedValues2.setText("Restrict characters");
        pairedValues2.setOpaque(false);
        pairedValues2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        pairedValues2.setEnabled(false);
        pairedValues2
                .setText(ATFieldInfo.getLabel(LookupList.class, LookupList.PROPERTYNAME_RESTRICT_TO_NMTOKEN));
        panel3.add(pairedValues2, cc.xy(3, 1));
    }
    add(panel3, cc.xy(3, 3));

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

        //======== scrollPane1 ========
        {
            scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane1.setViewportView(listItems);
        }
        panel1.add(scrollPane1, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel2 ========
        {
            panel2.setBackground(new Color(234, 201, 250));
            panel2.setOpaque(false);
            panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel2.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default"), 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 }));

            //---- addItem ----
            addItem.setText("Add Item");
            addItem.setBackground(new Color(234, 201, 250));
            addItem.setOpaque(false);
            addItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addItemActionPerformed(e);
                }
            });
            panel2.add(addItem, cc.xy(1, 3));

            //---- removeItem ----
            removeItem.setText("Remove Item(s)");
            removeItem.setBackground(new Color(234, 201, 250));
            removeItem.setOpaque(false);
            removeItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeItemActionPerformed(e);
                }
            });
            panel2.add(removeItem, cc.xy(1, 5));

            //---- changeItem ----
            changeItem.setText("Change Item");
            changeItem.setBackground(new Color(234, 201, 250));
            changeItem.setOpaque(false);
            changeItem.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeItemActionPerformed(e);
                }
            });
            panel2.add(changeItem, cc.xy(1, 7));

            //---- mergeItems ----
            mergeItems.setText("Merge Items");
            mergeItems.setBackground(new Color(234, 201, 250));
            mergeItems.setOpaque(false);
            mergeItems.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            mergeItems.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mergeItemsActionPerformed(e);
                }
            });
            panel2.add(mergeItems, cc.xy(1, 9));

            //---- importItems ----
            importItems.setText("Import Items");
            importItems.setBackground(new Color(234, 201, 250));
            importItems.setOpaque(false);
            importItems.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            importItems.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    importItemsActionPerformed(e);
                }
            });
            panel2.add(importItems, cc.xy(1, 11));

            //---- showRecordCount ----
            showRecordCount.setText("Show Record Count");
            showRecordCount.setBackground(new Color(234, 201, 250));
            showRecordCount.setOpaque(false);
            showRecordCount.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            showRecordCount.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    showRecordCountActionPerformed(e);
                }
            });
            panel2.add(showRecordCount, cc.xy(1, 13));
        }
        panel1.add(panel2, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    }
    add(panel1, cc.xywh(3, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

    //---- label3 ----
    label3.setText("Items in Red can't be modified");
    label3.setForeground(new Color(130, 0, 0));
    add(label3, cc.xy(3, 7));

    //---- label2 ----
    label2.setText("Items in Blue are AT initial values");
    label2.setForeground(new Color(45, 78, 114));
    add(label2, cc.xy(3, 9));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    label_nameCorporatePrimaryName = new JLabel();
    nameCorporatePrimaryName = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_CORPORATE_PRIMARY_NAME));
    label_nameCorporateSubordinate1 = new JLabel();
    nameCorporateSubordinate1 = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_CORPORATE_SUBORDINATE_1));
    label_nameCorporateSubordinate2 = new JLabel();
    nameCorporateSubordinate2 = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_CORPORATE_SUBORDINATE_2));
    label_nameCorporateNumber = new JLabel();
    nameCorporateNumber = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_NUMBER));
    label_nameCorporateQualifier = new JLabel();
    nameCorporateQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_QUALIFIER));
    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);
    separator3 = new JSeparator();
    panel4 = new JPanel();
    label_sortName2 = new JLabel();
    sortName = ATBasicComponentFactory//from  w w  w .j  a  va 2s.  c om
            .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(231, 188, 251));
    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;300px):grow") },
            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

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

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

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

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

    //---- label_nameCorporateSubordinate1 ----
    label_nameCorporateSubordinate1.setText("Subordinate");
    label_nameCorporateSubordinate1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_nameCorporateSubordinate1, Names.class,
            Names.PROPERTYNAME_CORPORATE_SUBORDINATE_1);
    add(label_nameCorporateSubordinate1, cc.xy(1, 5));

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

    //---- label_nameCorporateSubordinate2 ----
    label_nameCorporateSubordinate2.setText("Subordinate");
    label_nameCorporateSubordinate2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_nameCorporateSubordinate2, Names.class,
            Names.PROPERTYNAME_CORPORATE_SUBORDINATE_2);
    add(label_nameCorporateSubordinate2, cc.xy(1, 7));

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

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

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

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

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

    //---- 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);
    add(label_nameSource, cc.xy(1, 13));

    //---- nameSource ----
    nameSource.setOpaque(false);
    nameSource.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            sortNameConstruction(e);
        }
    });
    add(nameSource, cc.xywh(3, 13, 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);
    add(label_nameRule, cc.xy(1, 15));

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

    //---- 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, 17, 3, 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_sortName2 ----
        label_sortName2.setText("Sort Name");
        label_sortName2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_sortName2, Names.class, Names.PROPERTYNAME_SORT_NAME);
        panel4.add(label_sortName2, cc.xy(1, 1));
        panel4.add(sortName, cc.xy(3, 1));

        //---- namePersonalDirectOrder2 ----
        namePersonalDirectOrder2.setText("Create automatically");
        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, 19, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    label_corporatePrimary = new JLabel();
    corporatePrimary = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_CORPORATE_PRIMARY_NAME));
    label_corporateSubordinate1 = new JLabel();
    corporateSubordinate1 = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_CORPORATE_SUBORDINATE_1));
    label_corporateSubordinate2 = new JLabel();
    corporateSubordinate2 = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_CORPORATE_SUBORDINATE_2));
    label_corporateNumber = new JLabel();
    corporateNumber = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_NUMBER));
    label_corporateQualifier = new JLabel();
    corporateQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_QUALIFIER));
    separator3 = new JSeparator();
    panel1 = new JPanel();
    label_sortName = new JLabel();
    sortName = ATBasicComponentFactory/*from  www  .j a va2s  . c  om*/
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_SORT_NAME));
    namePersonalDirectOrder2 = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY, NonPreferredNames.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBorder(Borders.DLU4_BORDER);
    setPreferredSize(new Dimension(500, 192));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;300px):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.RELATED_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

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

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

    //---- label_corporatePrimary ----
    label_corporatePrimary.setText("Primary Name");
    label_corporatePrimary.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_corporatePrimary, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_CORPORATE_PRIMARY_NAME);
    add(label_corporatePrimary, cc.xy(1, 3));

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

    //---- label_corporateSubordinate1 ----
    label_corporateSubordinate1.setText("Subordinate");
    label_corporateSubordinate1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_corporateSubordinate1, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_CORPORATE_SUBORDINATE_1);
    add(label_corporateSubordinate1, cc.xy(1, 5));

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

    //---- label_corporateSubordinate2 ----
    label_corporateSubordinate2.setText("Subordinate");
    label_corporateSubordinate2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_corporateSubordinate2, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_CORPORATE_SUBORDINATE_2);
    add(label_corporateSubordinate2, cc.xy(1, 7));

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

    //---- label_corporateNumber ----
    label_corporateNumber.setText("Number");
    label_corporateNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_corporateNumber, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_NUMBER);
    add(label_corporateNumber, cc.xy(1, 9));

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

    //---- label_corporateQualifier ----
    label_corporateQualifier.setText("Qualifier");
    label_corporateQualifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_corporateQualifier, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_QUALIFIER);
    add(label_corporateQualifier, cc.xy(1, 11));

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

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

    //======== panel1 ========
    {
        panel1.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, NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_SORT_NAME);
        panel1.add(label_sortName, cc.xy(1, 1));
        panel1.add(sortName, cc.xy(3, 1));

        //---- namePersonalDirectOrder2 ----
        namePersonalDirectOrder2.setText("Create automatically");
        namePersonalDirectOrder2.setOpaque(false);
        namePersonalDirectOrder2.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                createAutomaticallyStateChanged(e);
            }
        });
        namePersonalDirectOrder2.setText(ATFieldInfo.getLabel(NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY));
        panel1.add(namePersonalDirectOrder2, cc.xy(5, 1));
    }
    add(panel1, cc.xywh(1, 15, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    label_nameFamilyName = new JLabel();
    nameFamilyName = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_FAMILY_NAME));
    label_nameFamilyNamePrefix = new JLabel();
    nameFamilyNamePrefix = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_FAMILY_NAME_PREFIX));
    label_nameFamilyQualifier = new JLabel();
    nameFamilyQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(Names.PROPERTYNAME_QUALIFIER));
    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);
    separator3 = new JSeparator();
    panel4 = new JPanel();
    label_sortName2 = new JLabel();
    sortName = ATBasicComponentFactory/* w  w w .  j  a  v a  2 s. c  o  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(231, 188, 251));
    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;300px):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.RELATED_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

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

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

    //---- label_nameFamilyName ----
    label_nameFamilyName.setText("Family Name");
    label_nameFamilyName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_nameFamilyName, Names.class, Names.PROPERTYNAME_FAMILY_NAME);
    add(label_nameFamilyName, cc.xy(1, 3));

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

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

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

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

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

    //---- 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);
    add(label_nameSource, cc.xy(1, 9));

    //---- nameSource ----
    nameSource.setOpaque(false);
    nameSource.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            sortNameConstruction(e);
        }
    });
    add(nameSource, cc.xywh(3, 9, 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);
    add(label_nameRule, cc.xy(1, 11));

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

    //---- 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, 13, 3, 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_sortName2 ----
        label_sortName2.setText("Sort Name");
        label_sortName2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_sortName2, Names.class, Names.PROPERTYNAME_SORT_NAME);
        panel4.add(label_sortName2, 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, 15, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    label_familyName = new JLabel();
    familyName = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_FAMILY_NAME));
    label_familyNamePrefix = new JLabel();
    familyNamePrefix = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_FAMILY_NAME_PREFIX));
    label_familyQualifier = new JLabel();
    familyQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_QUALIFIER));
    separator3 = new JSeparator();
    panel1 = new JPanel();
    label_sortName = new JLabel();
    sortName = ATBasicComponentFactory/*from  w ww.j a v  a 2  s.  c o m*/
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_SORT_NAME));
    namePersonalDirectOrder2 = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY, NonPreferredNames.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBorder(Borders.DLU4_BORDER);
    setPreferredSize(new Dimension(500, 138));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;300px):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.RELATED_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

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

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

    //---- label_familyName ----
    label_familyName.setText("Family Name");
    label_familyName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_familyName, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_FAMILY_NAME);
    add(label_familyName, cc.xy(1, 3));

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

    //---- label_familyNamePrefix ----
    label_familyNamePrefix.setText("Prefix");
    label_familyNamePrefix.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_familyNamePrefix, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_FAMILY_NAME_PREFIX);
    add(label_familyNamePrefix, cc.xy(1, 5));

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

    //---- label_familyQualifier ----
    label_familyQualifier.setText("Qualifier");
    label_familyQualifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_familyQualifier, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_QUALIFIER);
    add(label_familyQualifier, cc.xy(1, 7));

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

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

    //======== panel1 ========
    {
        panel1.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, NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_SORT_NAME);
        panel1.add(label_sortName, cc.xy(1, 1));
        panel1.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(NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY));
        panel1.add(namePersonalDirectOrder2, cc.xy(5, 1));
    }
    add(panel1, cc.xywh(1, 11, 3, 1));
    // 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 w  w  .  j  ava2  s. c  o  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   w w  w .  j  a v  a  2s .  c o 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.NamePersonalNonPreferredFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    nameTypeLabel = new JLabel();
    nameType = new JLabel();
    label_personalPrefix = new JLabel();
    personalPrefix = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_PREFIX));
    personalDirectOrder = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            NonPreferredNames.PROPERTYNAME_PERSONAL_DIRECT_ORDER, NonPreferredNames.class);
    label_personalPrimaryName = new JLabel();
    personalPrimaryName = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_PRIMARY_NAME));
    label_personalRestOfName = new JLabel();
    personalRestOfName = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_REST_OF_NAME));
    label_personalTitle = new JLabel();
    personalSuffix2 = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_TITLE));
    label_personalSuffix = new JLabel();
    personalSuffix = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_SUFFIX));
    label_personalNumber = new JLabel();
    personalNumber = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_NUMBER));
    label_personalDates = new JLabel();
    personalDates = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_DATES));
    label_personalFullerForm = new JLabel();
    personalFullerForm = ATBasicComponentFactory.createTextField(
            parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_PERSONAL_FULLER_FORM));
    label_personalQualifier = new JLabel();
    personalQualifier = ATBasicComponentFactory
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_QUALIFIER));
    separator3 = new JSeparator();
    panel1 = new JPanel();
    label_sortName = new JLabel();
    sortName = ATBasicComponentFactory//  ww  w . ja v  a2s  .c  om
            .createTextField(parentPresentationModel.getModel(NonPreferredNames.PROPERTYNAME_SORT_NAME));
    namePersonalDirectOrder2 = ATBasicComponentFactory.createCheckBox(parentPresentationModel,
            NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY, NonPreferredNames.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBorder(Borders.DLU4_BORDER);
    setPreferredSize(new Dimension(500, 350));
    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.PREF_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.RELATED_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

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

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

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

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

    //---- personalDirectOrder ----
    personalDirectOrder.setBackground(new Color(231, 188, 251));
    personalDirectOrder.setText("Direct Order");
    personalDirectOrder.setOpaque(false);
    personalDirectOrder.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    personalDirectOrder.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            namePersonalDirectOrderStateChanged(e);
        }
    });
    personalDirectOrder.setText(ATFieldInfo.getLabel(NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_DIRECT_ORDER));
    add(personalDirectOrder, cc.xy(5, 3));

    //---- label_personalPrimaryName ----
    label_personalPrimaryName.setText("Primary Name");
    label_personalPrimaryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalPrimaryName, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_PRIMARY_NAME);
    add(label_personalPrimaryName, cc.xy(1, 5));

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

    //---- label_personalRestOfName ----
    label_personalRestOfName.setText("Rest of Name");
    label_personalRestOfName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalRestOfName, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_REST_OF_NAME);
    add(label_personalRestOfName, cc.xy(1, 7));

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

    //---- label_personalTitle ----
    label_personalTitle.setText("Title");
    label_personalTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalTitle, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_TITLE);
    add(label_personalTitle, cc.xy(1, 9));

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

    //---- label_personalSuffix ----
    label_personalSuffix.setText("Suffix");
    label_personalSuffix.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalSuffix, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_SUFFIX);
    add(label_personalSuffix, cc.xy(1, 11));

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

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

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

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

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

    //---- label_personalFullerForm ----
    label_personalFullerForm.setText("Fuller Form");
    label_personalFullerForm.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalFullerForm, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_PERSONAL_FULLER_FORM);
    add(label_personalFullerForm, cc.xy(1, 17));

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

    //---- label_personalQualifier ----
    label_personalQualifier.setText("Qualifier");
    label_personalQualifier.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_personalQualifier, NonPreferredNames.class,
            NonPreferredNames.PROPERTYNAME_QUALIFIER);
    add(label_personalQualifier, cc.xy(1, 19));

    //---- personalQualifier ----
    personalQualifier.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            sortNameConstruction(e);
        }
    });
    add(personalQualifier, cc.xywh(3, 19, 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));
    add(separator3, cc.xywh(1, 21, 5, 1));

    //======== panel1 ========
    {
        panel1.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, NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_SORT_NAME);
        panel1.add(label_sortName, cc.xy(1, 1));
        panel1.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(NonPreferredNames.class,
                NonPreferredNames.PROPERTYNAME_CREATE_SORT_NAME_AUTOMATICALLY));
        panel1.add(namePersonalDirectOrder2, cc.xy(5, 1));
    }
    add(panel1, cc.xywh(1, 23, 5, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}