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

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

Introduction

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

Prototype

Alignment DEFAULT

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

Click Source Link

Document

Use the column's or row's default alignment.

Usage

From source file:org.archiviststoolkit.editor.rde.RdeNames.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    separator3 = new JSeparator();
    namesLabel = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel11 = new JPanel();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
            new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

    //---- 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, 1, 1, 2, CellConstraints.DEFAULT, CellConstraints.CENTER));

    //---- namesLabel ----
    namesLabel.setText("Name link");
    namesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    namesLabel.addMouseListener(new MouseAdapter() {
        @Override/*from  w  w w  .j ava2s .c  o  m*/
        public void mouseClicked(MouseEvent e) {
            NamesLabelMouseClicked(e);
        }
    });
    add(namesLabel, cc.xy(1, 3));

    //======== scrollPane1 ========
    {
        scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

        //---- namesTable ----
        namesTable.setFocusable(false);
        namesTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
        scrollPane1.setViewportView(namesTable);
    }
    add(scrollPane1, cc.xy(1, 5));

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

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

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

From source file:org.archiviststoolkit.editor.rde.RdeNoteFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    separator3 = new JSeparator();
    label_Note = new JLabel();
    noteType = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    internalOnly = new JCheckBox();
    label_internalOnly = new JLabel();
    scrollPane1 = new JScrollPane();
    note = ATBasicComponentFactory.createUnboundedTextArea();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    FormFactory.DEFAULT_COLSPEC, 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 }));

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

    //---- label_Note ----
    label_Note.setText("Note");
    label_Note.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    label_Note.addMouseListener(new MouseAdapter() {
        @Override/*from  w  w w. j  a  v  a  2 s .c  o  m*/
        public void mouseClicked(MouseEvent e) {
            label_NoteMouseClicked(e);
        }
    });
    add(label_Note, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

    //---- noteType ----
    noteType.setOpaque(false);
    noteType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    noteType.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
            noteTypeFocusGained(e);
        }
    });
    noteType.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            noteTypeActionPerformed(e);
        }
    });
    add(noteType, cc.xywh(3, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

    //---- internalOnly ----
    internalOnly.setBackground(new Color(200, 205, 232));
    add(internalOnly, cc.xy(5, 3));

    //---- label_internalOnly ----
    label_internalOnly.setText("Internal only");
    label_internalOnly.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    label_internalOnly.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            label_internalOnlyMouseClicked(e);
        }
    });
    add(label_internalOnly, cc.xywh(7, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

        //---- note ----
        note.setRows(4);
        note.setWrapStyleWord(true);
        note.setLineWrap(true);
        note.addFocusListener(new FocusAdapter() {
            @Override
            public void focusGained(FocusEvent e) {
                noteFocusGained(e);
            }
        });
        scrollPane1.setViewportView(note);
    }
    add(scrollPane1, cc.xywh(1, 5, 7, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.rde.RdeSubjects.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    separator3 = new JSeparator();
    subjectsLabel = new JLabel();
    scrollPane1 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel11 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
            new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC }));

    //---- 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, 1, 1, 2, CellConstraints.DEFAULT, CellConstraints.CENTER));

    //---- subjectsLabel ----
    subjectsLabel.setText("Subject link");
    subjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    subjectsLabel.addMouseListener(new MouseAdapter() {
        @Override//from w ww  .java2s . c om
        public void mouseClicked(MouseEvent e) {
            SubjectsLabelMouseClicked(e);
        }
    });
    add(subjectsLabel, cc.xy(1, 3));

    //======== scrollPane1 ========
    {
        scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

        //---- subjectsTable ----
        subjectsTable.setFocusable(false);
        subjectsTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
        scrollPane1.setViewportView(subjectsTable);
    }
    add(scrollPane1, cc.xy(1, 5));

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

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

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

From source file:org.archiviststoolkit.editor.rde.RdeTextArea.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    separator3 = new JSeparator();
    label = new JLabel();
    scrollPane1 = new JScrollPane();
    textArea = ATBasicComponentFactory.createUnboundedTextArea();
    CellConstraints cc = new CellConstraints();

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

    //---- 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));
    separator3.setOpaque(true);/*from   ww w .  java  2s  .  c o  m*/
    add(separator3, cc.xywh(1, 1, 3, 1, CellConstraints.DEFAULT, CellConstraints.CENTER));

    //---- label ----
    label.setText("Label");
    label.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            labelMouseClicked(e);
        }
    });
    add(label, cc.xy(1, 3));

    //======== scrollPane1 ========
    {
        scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

        //---- textArea ----
        textArea.setRows(4);
        textArea.setLineWrap(true);
        textArea.setWrapStyleWord(true);
        textArea.addFocusListener(new FocusAdapter() {
            @Override
            public void focusGained(FocusEvent e) {
                textAreaFocusGained(e);
            }
        });
        scrollPane1.setViewportView(textArea);
    }
    add(scrollPane1, cc.xywh(3, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.rde.RdeYearRangeField.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    separator3 = new JSeparator();
    label = new JLabel();
    label_yearBegin = new JLabel();
    yearBegin = ATBasicComponentFactory.createUnboundIntegerField(false);
    label_yearEnd = new JLabel();
    yearEnd = ATBasicComponentFactory.createUnboundIntegerField(false);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.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 }));

    //---- separator3 ----
    separator3.setBackground(new Color(220, 220, 232));
    separator3.setForeground(new Color(147, 131, 86));
    separator3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    separator3.setOpaque(true);/*from  www  .j av  a2  s .  c o  m*/
    add(separator3, cc.xywh(1, 1, 11, 1));

    //---- label ----
    label.setText("Label");
    add(label, cc.xy(1, 3));

    //---- label_yearBegin ----
    label_yearBegin.setText("Begin");
    label_yearBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    label_yearBegin.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            label_yearBeginMouseClicked(e);
        }
    });
    add(label_yearBegin, cc.xy(3, 3));

    //---- yearBegin ----
    yearBegin.setColumns(5);
    yearBegin.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
            yearBeginFocusGained(e);
        }
    });
    add(yearBegin, cc.xywh(5, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

    //---- label_yearEnd ----
    label_yearEnd.setText("End");
    label_yearEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    label_yearEnd.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            label_yearEndMouseClicked(e);
        }
    });
    add(label_yearEnd, cc.xy(7, 3));

    //---- yearEnd ----
    yearEnd.setColumns(5);
    yearEnd.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
            yearEndFocusGained(e);
        }
    });
    add(yearEnd, cc.xywh(9, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label_RDE_name = new JLabel();
    rdeScreenName = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(RDEScreen.PROPERTYNAME_NAME_RDE_SCREEN_NAME));
    panel1 = new JPanel();
    panel2 = new JPanel();
    label2 = new JLabel();
    label3 = new JLabel();
    scrollPane2 = new JScrollPane();
    options = new JList();
    panel3 = new JPanel();
    addButton = new JButton();
    removeButton = new JButton();
    moveUpButton = new JButton();
    moveDownButton = new JButton();
    scrollPane1 = new JScrollPane();
    rdeScreenPanels = new DomainSortedTable(RDEScreenPanels.class);
    label1 = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);// www.  ja v a2 s  . c o m
    setOpaque(false);
    setPreferredSize(new Dimension(800, 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.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

    //---- label_RDE_name ----
    label_RDE_name.setText("RDE Name");
    label_RDE_name.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_RDE_name, RDEScreen.class, RDEScreen.PROPERTYNAME_NAME_RDE_SCREEN_NAME);
    add(label_RDE_name, cc.xy(1, 1));
    add(rdeScreenName, cc.xy(3, 1));

    //======== panel1 ========
    {
        panel1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                RowSpec.decodeSpecs("")));
    }
    add(panel1, cc.xywh(1, 3, 3, 1));

    //======== panel2 ========
    {
        panel2.setLayout(new FormLayout(
                new ColumnSpec[] { 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,
                        new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));
        ((FormLayout) panel2.getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

        //---- label2 ----
        label2.setText("Items to pick from");
        panel2.add(label2, cc.xy(1, 1));

        //---- label3 ----
        label3.setText("Items picked");
        panel2.add(label3, cc.xy(5, 1));

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

            //---- options ----
            options.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            options.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    optionsMouseClicked(e);
                }
            });
            scrollPane2.setViewportView(options);
        }
        panel2.add(scrollPane2, cc.xywh(1, 3, 1, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel3 ========
        {
            panel3.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 }));

            //---- addButton ----
            addButton.setText("Add ->");
            addButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addButtonActionPerformed();
                }
            });
            panel3.add(addButton, cc.xy(1, 1));

            //---- removeButton ----
            removeButton.setText("Remove");
            removeButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeButtonActionPerformed();
                }
            });
            panel3.add(removeButton, cc.xy(1, 3));

            //---- moveUpButton ----
            moveUpButton.setText("Move Up");
            moveUpButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    moveUpButtonActionPerformed();
                }
            });
            panel3.add(moveUpButton, cc.xy(1, 5));

            //---- moveDownButton ----
            moveDownButton.setText("Move Down");
            moveDownButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    moveDownButtonActionPerformed();
                }
            });
            panel3.add(moveDownButton, cc.xy(1, 7));
        }
        panel2.add(panel3, cc.xy(3, 3));

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

            //---- rdeScreenPanels ----
            rdeScreenPanels.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    rdeScreenPanelsMouseClicked(e);
                }
            });
            scrollPane1.setViewportView(rdeScreenPanels);
        }
        panel2.add(scrollPane1, cc.xy(5, 3));

        //---- label1 ----
        label1.setText("Double click to set stickiness options");
        panel2.add(label1, cc.xy(5, 5));
    }
    add(panel2, cc.xywh(1, 5, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    repositoryName15 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_NAME));
    tabbedPane1 = new JTabbedPane();
    repositoryInfo = new JPanel();
    label1 = new JLabel();
    repositoryName = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_NAME));
    label15 = new JLabel();
    repositoryName16 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_SHORT_NAME));
    label20 = new JLabel();
    repositoryName18 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_INSTITUTION_NAME));
    label2 = new JLabel();
    repositoryName2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_ADDRESS1));
    label3 = new JLabel();
    repositoryName3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_ADDRESS2));
    label14 = new JLabel();
    repositoryName14 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_ADDRESS3));
    label4 = new JLabel();
    repositoryName4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_CITY));
    label5 = new JLabel();
    repositoryName5 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_REGION));
    label6 = new JLabel();
    repositoryName6 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_COUNTRY));
    label7 = new JLabel();
    repositoryName7 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_MAILCODE));
    label8 = new JLabel();
    repositoryName8 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_TELEPHONE));
    label9 = new JLabel();
    repositoryName9 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_FAX));
    label10 = new JLabel();
    repositoryName10 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_EMAIL));
    label11 = new JLabel();
    repositoryName11 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_URL));
    label12 = new JLabel();
    repositoryName12 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_COUNTRY_CODE));
    label13 = new JLabel();
    repositoryName13 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_REPOSITORY_AGENCY_CODE));
    label41 = new JLabel();
    repositoryName19 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_NCES_ID));
    label18 = new JLabel();
    repositoryName17 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Repositories.PROPERTYNAME_BRANDING_DEVICE));
    label19 = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            Repositories.PROPERTYNAME_DESCRIPTIVE_LANGUAGE, Repositories.class);
    repositoryStatistics = new JPanel();
    scrollPane4 = new JScrollPane();
    statisticsTable = new DomainSortableTable(RepositoryStatistics.class);
    panel2 = new JPanel();
    addStatistics = new JButton();
    removeStatistics = new JButton();
    defaultValues = new JPanel();
    label16 = new JLabel();
    scrollPane1 = new JScrollPane();
    defaultValuesTable = new DomainSortableTable(DefaultValues.class);
    panel1 = new JPanel();
    addDefaultValue = new JButton();
    removeDefaultValue = new JButton();
    separator5 = new JSeparator();
    label17 = new JLabel();
    scrollPane2 = new JScrollPane();
    noteDefaultValuesTable = new DomainSortableTable(RepositoryNotesDefaultValues.class,
            RepositoryNotesDefaultValues.PROPERTYNAME_NOTE_TYPE);
    notes = new JPanel();
    scrollPane3 = new JScrollPane();
    notesTable = new DomainSortedTable(RepositoryNotes.class);
    panel3 = new JPanel();
    addNoteButton = new JButton();
    removeNoteButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //---- repositoryName15 ----
    repositoryName15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    repositoryName15.setEditable(false);
    repositoryName15.setOpaque(false);//from  w w w.j  a  v  a 2 s. co m
    repositoryName15.setBorder(null);
    add(repositoryName15, cc.xy(2, 1));

    //======== tabbedPane1 ========
    {
        tabbedPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

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

            //---- label1 ----
            label1.setText("Repository Name");
            label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label1, Repositories.class, Repositories.PROPERTYNAME_REPOSITORY_NAME);
            repositoryInfo.add(label1, cc.xy(1, 1));
            repositoryInfo.add(repositoryName, cc.xy(3, 1));

            //---- label15 ----
            label15.setText("Short Name");
            label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label15, Repositories.class, Repositories.PROPERTYNAME_SHORT_NAME);
            repositoryInfo.add(label15, cc.xy(1, 3));
            repositoryInfo.add(repositoryName16, cc.xy(3, 3));

            //---- label20 ----
            label20.setText("Instution Name");
            label20.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label20, Repositories.class,
                    Repositories.PROPERTYNAME_INSTITUTION_NAME);
            repositoryInfo.add(label20, cc.xy(1, 5));
            repositoryInfo.add(repositoryName18, cc.xy(3, 5));

            //---- label2 ----
            label2.setText("Address");
            label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label2, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_ADDRESS1);
            repositoryInfo.add(label2, cc.xy(1, 7));
            repositoryInfo.add(repositoryName2, cc.xy(3, 7));

            //---- label3 ----
            label3.setText("Address");
            label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label3, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_ADDRESS2);
            repositoryInfo.add(label3, cc.xy(1, 9));
            repositoryInfo.add(repositoryName3, cc.xy(3, 9));

            //---- label14 ----
            label14.setText("Address");
            label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label14, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_ADDRESS3);
            repositoryInfo.add(label14, cc.xy(1, 11));
            repositoryInfo.add(repositoryName14, cc.xy(3, 11));

            //---- label4 ----
            label4.setText("City");
            label4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label4, Repositories.class, Repositories.PROPERTYNAME_REPOSITORY_CITY);
            repositoryInfo.add(label4, cc.xy(1, 13));
            repositoryInfo.add(repositoryName4, cc.xy(3, 13));

            //---- label5 ----
            label5.setText("Region");
            label5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label5, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_REGION);
            repositoryInfo.add(label5, cc.xy(1, 15));
            repositoryInfo.add(repositoryName5, cc.xy(3, 15));

            //---- label6 ----
            label6.setText("Country");
            label6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label6, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_COUNTRY);
            repositoryInfo.add(label6, cc.xy(1, 17));
            repositoryInfo.add(repositoryName6, cc.xy(3, 17));

            //---- label7 ----
            label7.setText("Mail Code");
            label7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label7, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_MAILCODE);
            repositoryInfo.add(label7, cc.xy(1, 19));
            repositoryInfo.add(repositoryName7, cc.xy(3, 19));

            //---- label8 ----
            label8.setText("Telephone");
            label8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label8, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_TELEPHONE);
            repositoryInfo.add(label8, cc.xy(1, 21));
            repositoryInfo.add(repositoryName8, cc.xy(3, 21));

            //---- label9 ----
            label9.setText("FAX");
            label9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label9, Repositories.class, Repositories.PROPERTYNAME_REPOSITORY_FAX);
            repositoryInfo.add(label9, cc.xy(1, 23));
            repositoryInfo.add(repositoryName9, cc.xy(3, 23));

            //---- label10 ----
            label10.setText("Email");
            label10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label10, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_EMAIL);
            repositoryInfo.add(label10, cc.xy(1, 25));
            repositoryInfo.add(repositoryName10, cc.xy(3, 25));

            //---- label11 ----
            label11.setText("URL");
            label11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label11, Repositories.class, Repositories.PROPERTYNAME_REPOSITORY_URL);
            repositoryInfo.add(label11, cc.xy(1, 27));
            repositoryInfo.add(repositoryName11, cc.xy(3, 27));

            //---- label12 ----
            label12.setText("Country Code");
            label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label12, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_COUNTRY_CODE);
            repositoryInfo.add(label12, cc.xy(1, 29));
            repositoryInfo.add(repositoryName12, cc.xy(3, 29));

            //---- label13 ----
            label13.setText("Agency Code");
            label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label13, Repositories.class,
                    Repositories.PROPERTYNAME_REPOSITORY_AGENCY_CODE);
            repositoryInfo.add(label13, cc.xy(1, 31));
            repositoryInfo.add(repositoryName13, cc.xy(3, 31));

            //---- label41 ----
            label41.setText("NCES Unit ID");
            label41.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label41, Repositories.class, Repositories.PROPERTYNAME_NCES_ID);
            repositoryInfo.add(label41, cc.xy(1, 33));

            //---- repositoryName19 ----
            repositoryName19.setColumns(20);
            repositoryInfo.add(repositoryName19,
                    cc.xywh(3, 33, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- label18 ----
            label18.setText("Branding Device");
            label18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label18, Repositories.class, Repositories.PROPERTYNAME_BRANDING_DEVICE);
            repositoryInfo.add(label18, cc.xy(1, 35));
            repositoryInfo.add(repositoryName17, cc.xy(3, 35));

            //---- label19 ----
            label19.setText("Descriptive Language");
            label19.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label19, Repositories.class,
                    Repositories.PROPERTYNAME_DESCRIPTIVE_LANGUAGE);
            repositoryInfo.add(label19, cc.xy(1, 37));

            //---- resourcesLanguageCode ----
            resourcesLanguageCode.setMaximumSize(new Dimension(50, 27));
            resourcesLanguageCode.setOpaque(false);
            resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            repositoryInfo.add(resourcesLanguageCode,
                    cc.xywh(3, 37, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        tabbedPane1.addTab("Repository Info", repositoryInfo);

        //======== repositoryStatistics ========
        {
            repositoryStatistics.setBackground(new Color(200, 205, 232));
            repositoryStatistics.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

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

                //---- statisticsTable ----
                statisticsTable.setPreferredScrollableViewportSize(new Dimension(450, 250));
                statisticsTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        statisticsTableMouseClicked(e);
                    }
                });
                scrollPane4.setViewportView(statisticsTable);
            }
            repositoryStatistics.add(scrollPane4,
                    cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

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

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

                //---- removeStatistics ----
                removeStatistics.setText("Remove Statistics");
                removeStatistics.setOpaque(false);
                removeStatistics.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeStatistics.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeStatisticsActionPerformed(e);
                    }
                });
                panel2.add(removeStatistics, cc.xy(3, 1));
            }
            repositoryStatistics.add(panel2,
                    cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane1.addTab("Repository Statistics", repositoryStatistics);

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

            //---- label16 ----
            label16.setText("Fields");
            defaultValues.add(label16, cc.xy(1, 1));

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

                //---- defaultValuesTable ----
                defaultValuesTable.setPreferredScrollableViewportSize(new Dimension(450, 250));
                defaultValuesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        defaultValuesMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(defaultValuesTable);
            }
            defaultValues.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.FILL));

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

                //---- addDefaultValue ----
                addDefaultValue.setText("Add Default Value");
                addDefaultValue.setOpaque(false);
                addDefaultValue.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addDefaultValue.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addDefaultValueActionPerformed();
                    }
                });
                panel1.add(addDefaultValue, cc.xy(1, 1));

                //---- removeDefaultValue ----
                removeDefaultValue.setText("Remove Default Value");
                removeDefaultValue.setOpaque(false);
                removeDefaultValue.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeDefaultValue.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeDefaultValueActionPerformed();
                    }
                });
                panel1.add(removeDefaultValue, cc.xy(3, 1));
            }
            defaultValues.add(panel1, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

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

            //---- label17 ----
            label17.setText("Default Values for notes");
            defaultValues.add(label17, cc.xy(1, 9));

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

                //---- noteDefaultValuesTable ----
                noteDefaultValuesTable.setPreferredScrollableViewportSize(new Dimension(450, 250));
                noteDefaultValuesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        noteDefaultValuesMouseClicked(e);
                    }
                });
                scrollPane2.setViewportView(noteDefaultValuesTable);
            }
            defaultValues.add(scrollPane2, cc.xywh(1, 11, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        tabbedPane1.addTab("Default Values", defaultValues);

        //======== notes ========
        {
            notes.setBackground(new Color(200, 205, 232));
            notes.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

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

                //---- notesTable ----
                notesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        notesTableMouseClicked(e);
                    }

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

                    @Override
                    public void mouseReleased(MouseEvent e) {
                        notesTableMouseReleased(e);
                    }
                });
                scrollPane3.setViewportView(notesTable);
            }
            notes.add(scrollPane3, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel3 ========
            {
                panel3.setBackground(new Color(231, 188, 251));
                panel3.setOpaque(false);
                panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel3.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(e);
                    }
                });
                panel3.add(addNoteButton, cc.xy(1, 1));

                //---- removeNoteButton ----
                removeNoteButton.setText("Remove Note");
                removeNoteButton.setOpaque(false);
                removeNoteButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNoteButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNoteButtonActionPerformed(e);
                    }
                });
                panel3.add(removeNoteButton, cc.xy(3, 1));
            }
            notes.add(panel3, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane1.addTab("Notes", notes);

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

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    repositoryName = new JTextField();
    separator1 = new JSeparator();
    label1 = new JLabel();
    nameDescriptionType = ATBasicComponentFactory.createComboBox(detailsModel,
            RepositoryNotes.PROPERTYNAME_LABEL, RepositoryNotes.class);
    label14 = new JLabel();
    scrollPane1 = new JScrollPane();
    noteText = ATBasicComponentFactory/*from  w  w  w .  ja  va  2s .c  o  m*/
            .createTextArea(detailsModel.getModel(RepositoryNotes.PROPERTYNAME_NOTE_TEXT));
    CellConstraints cc = new CellConstraints();

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

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

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

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

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

    //---- label14 ----
    label14.setText("Note");
    label14.setVerticalAlignment(SwingConstants.TOP);
    label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label14, RepositoryNotes.class, RepositoryNotes.PROPERTYNAME_NOTE_TEXT);
    add(label14, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

        //---- noteText ----
        noteText.setRows(20);
        noteText.setLineWrap(true);
        noteText.setTabSize(20);
        noteText.setWrapStyleWord(true);
        scrollPane1.setViewportView(noteText);
    }
    add(scrollPane1, cc.xy(3, 7));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    noteTypeLabel = new JLabel();
    noteType = new JLabel();
    label_subjectScopeNote2 = new JLabel();
    defaultTitle = ATBasicComponentFactory.createTextField(
            detailsModel.getBufferedModel(RepositoryNotesDefaultValues.PROPERTYNAME_DEFAULT_TITLE));
    label_subjectScopeNote = new JLabel();
    scrollPane1 = new JScrollPane();
    defaultContent = ATBasicComponentFactory.createTextArea(
            detailsModel.getBufferedModel(RepositoryNotesDefaultValues.PROPERTYNAME_DEFAULT_CONTENT));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);//from  w  w  w . j a v  a  2 s.com
    setBackground(new Color(234, 201, 250));
    setOpaque(false);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;400px):grow") },
            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.RELATED_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

    //---- noteTypeLabel ----
    noteTypeLabel.setText("Note Type");
    noteTypeLabel.setVerticalAlignment(SwingConstants.TOP);
    noteTypeLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(noteTypeLabel, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //---- noteType ----
    noteType.setText("Note Type Value");
    noteType.setVerticalAlignment(SwingConstants.TOP);
    noteType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    add(noteType, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    //---- label_subjectScopeNote2 ----
    label_subjectScopeNote2.setText("Default Title");
    label_subjectScopeNote2.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote2, RepositoryNotesDefaultValues.class,
            RepositoryNotesDefaultValues.PROPERTYNAME_DEFAULT_TITLE);
    add(label_subjectScopeNote2, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
    add(defaultTitle, cc.xy(3, 3));

    //---- label_subjectScopeNote ----
    label_subjectScopeNote.setText("Default Content");
    label_subjectScopeNote.setVerticalAlignment(SwingConstants.TOP);
    label_subjectScopeNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label_subjectScopeNote, RepositoryNotesDefaultValues.class,
            RepositoryNotesDefaultValues.PROPERTYNAME_DEFAULT_CONTENT);
    add(label_subjectScopeNote, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

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

        //---- defaultContent ----
        defaultContent.setRows(10);
        defaultContent.setLineWrap(true);
        defaultContent.setTabSize(20);
        defaultContent.setWrapStyleWord(true);
        scrollPane1.setViewportView(defaultContent);
    }
    add(scrollPane1, cc.xywh(3, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    label51 = new JLabel();
    yearOfReport = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_YEAR_OF_REPORT);
    separator1 = new JSeparator();
    panel4 = new JPanel();
    label21 = new JLabel();
    rights = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_DIGITIZATION, RepositoryStatistics.class);
    rights4 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_PHOTOGRAPHIC_REPRODUCTION, RepositoryStatistics.class);
    rights2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_EXHIBIT_LOANS, RepositoryStatistics.class);
    rights5 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_RETAIL_GIFT_SALES, RepositoryStatistics.class);
    rights3 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_FOOD_BEVERAGE, RepositoryStatistics.class);
    separator2 = new JSeparator();
    panel5 = new JPanel();
    label22 = new JLabel();
    label42 = new JLabel();
    extentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_PROFESSIONAL_FTE);
    label43 = new JLabel();
    extentNumber2 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_NON_PROFESSIONAL_FTE);
    label44 = new JLabel();
    extentNumber3 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_STUDENT_FTE);
    label45 = new JLabel();
    extentNumber4 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_VOLUNTEER_FTE);
    separator3 = new JSeparator();
    panel6 = new JPanel();
    label23 = new JLabel();
    label46 = new JLabel();
    extentNumber5 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_ADMIN);
    label47 = new JLabel();
    extentNumber6 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_PROCESSING);
    label48 = new JLabel();
    extentNumber7 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_PRESERVATION);
    label49 = new JLabel();
    extentNumber8 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_REFERENCE);
    separator4 = new JSeparator();
    panel7 = new JPanel();
    label24 = new JLabel();
    rights6 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLL_FOCI_HISTORICAL, RepositoryStatistics.class);
    rights7 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLL_FOCI_INSTITUTIONAL, RepositoryStatistics.class);
    rights8 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLL_FOCI_MANUSCRIPT, RepositoryStatistics.class);
    rights9 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLL_FOCI_PERSONAL_PAPERS, RepositoryStatistics.class);
    rights10 = ATBasicComponentFactory.createCheckBox(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLL_FOCI_OTHER, RepositoryStatistics.class);
    separator5 = new JSeparator();
    label50 = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory/*from  w w w.ja  va  2  s. c  o  m*/
            .createTextArea(detailsModel.getModel(RepositoryStatistics.PROPERTYNAME_MAJOR_SUBJECT_AREAS));
    panel8 = new JPanel();
    label40 = new JLabel();
    extentNumber9 = ATBasicComponentFactory.createDoubleField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_PERCENTAGE_OFF_SITE);
    separator6 = new JSeparator();
    panel10 = new JPanel();
    label26 = new JLabel();
    label56 = new JLabel();
    extentNumber14 = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_NET_USABLE_AREA);
    label57 = new JLabel();
    extentNumber15 = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_ADMINISTRATION_OFFICES);
    label60 = new JLabel();
    extentNumber18 = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_CLASSROOMS);
    label58 = new JLabel();
    extentNumber16 = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_COLLECTIONS_STORAGE);
    label59 = new JLabel();
    extentNumber17 = ATBasicComponentFactory.createIntegerField(detailsModel,
            RepositoryStatistics.PROPERTYNAME_READING_ROOM);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(Borders.DLU4_BORDER);
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec("max(default;400px):grow") },
            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

    //---- label51 ----
    label51.setText("Year of report");
    label51.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label51, RepositoryStatistics.class,
            RepositoryStatistics.PROPERTYNAME_YEAR_OF_REPORT);
    add(label51, cc.xy(1, 1));

    //---- yearOfReport ----
    yearOfReport.setColumns(4);
    add(yearOfReport, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

    //---- separator1 ----
    separator1.setForeground(new Color(147, 131, 86));
    add(separator1, cc.xywh(1, 3, 3, 1));

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

        //---- label21 ----
        label21.setText("Services provided (check all that apply):");
        panel4.add(label21, cc.xywh(1, 1, 7, 1));

        //---- rights ----
        rights.setText("Digitization / scanning");
        rights.setOpaque(false);
        rights.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_DIGITIZATION));
        panel4.add(rights, cc.xy(3, 3));

        //---- rights4 ----
        rights4.setText("Photographic reproduction");
        rights4.setOpaque(false);
        rights4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights4.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_PHOTOGRAPHIC_REPRODUCTION));
        panel4.add(rights4, cc.xy(5, 3));

        //---- rights2 ----
        rights2.setText("Exhibit loans");
        rights2.setOpaque(false);
        rights2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights2.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_EXHIBIT_LOANS));
        panel4.add(rights2, cc.xy(7, 3));

        //---- rights5 ----
        rights5.setText("Retail / gift sales");
        rights5.setOpaque(false);
        rights5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights5.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_RETAIL_GIFT_SALES));
        panel4.add(rights5, cc.xy(3, 5));

        //---- rights3 ----
        rights3.setText("Food and beverage");
        rights3.setOpaque(false);
        rights3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights3.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_FOOD_BEVERAGE));
        panel4.add(rights3, cc.xy(5, 5));
    }
    add(panel4, cc.xywh(1, 5, 3, 1));

    //---- separator2 ----
    separator2.setForeground(new Color(147, 131, 86));
    add(separator2, cc.xywh(1, 7, 3, 1));

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

        //---- label22 ----
        label22.setText("Staff size (complete all that apply):");
        panel5.add(label22, cc.xywh(1, 1, 9, 1));

        //---- label42 ----
        label42.setText("Professional FTE");
        label42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label42, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_PROFESSIONAL_FTE);
        panel5.add(label42, cc.xy(3, 3));

        //---- extentNumber ----
        extentNumber.setColumns(5);
        panel5.add(extentNumber, cc.xy(5, 3));

        //---- label43 ----
        label43.setText("Non-professional FTE");
        label43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label43, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_NON_PROFESSIONAL_FTE);
        panel5.add(label43, cc.xy(7, 3));

        //---- extentNumber2 ----
        extentNumber2.setColumns(5);
        panel5.add(extentNumber2, cc.xywh(9, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- label44 ----
        label44.setText("Student FTE");
        label44.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label44, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_STUDENT_FTE);
        panel5.add(label44, cc.xy(3, 5));

        //---- extentNumber3 ----
        extentNumber3.setColumns(5);
        panel5.add(extentNumber3, cc.xy(5, 5));

        //---- label45 ----
        label45.setText("Volunteer FTE");
        label45.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label45, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_VOLUNTEER_FTE);
        panel5.add(label45, cc.xy(7, 5));

        //---- extentNumber4 ----
        extentNumber4.setColumns(5);
        panel5.add(extentNumber4, cc.xywh(9, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    }
    add(panel5, cc.xywh(1, 9, 3, 1));

    //---- separator3 ----
    separator3.setForeground(new Color(147, 131, 86));
    add(separator3, cc.xywh(1, 11, 3, 1));

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

        //---- label23 ----
        label23.setText("FTE Functional Distribution (complete all that apply):");
        panel6.add(label23, cc.xywh(1, 1, 9, 1));

        //---- label46 ----
        label46.setText("Administration");
        label46.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label46, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_ADMIN);
        panel6.add(label46, cc.xy(3, 3));

        //---- extentNumber5 ----
        extentNumber5.setColumns(5);
        panel6.add(extentNumber5, cc.xy(5, 3));

        //---- label47 ----
        label47.setText("Processing");
        label47.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label47, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_PROCESSING);
        panel6.add(label47, cc.xy(7, 3));

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

        //---- label48 ----
        label48.setText("Preservation");
        label48.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label48, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_PRESERVATION);
        panel6.add(label48, cc.xy(3, 5));

        //---- extentNumber7 ----
        extentNumber7.setColumns(5);
        panel6.add(extentNumber7, cc.xy(5, 5));

        //---- label49 ----
        label49.setText("Reference");
        label49.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label49, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_FUNCT_DIST_REFERENCE);
        panel6.add(label49, cc.xy(7, 5));

        //---- extentNumber8 ----
        extentNumber8.setColumns(5);
        panel6.add(extentNumber8, cc.xywh(9, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    }
    add(panel6, cc.xywh(1, 13, 3, 1));

    //---- separator4 ----
    separator4.setForeground(new Color(147, 131, 86));
    add(separator4, cc.xywh(1, 15, 3, 1));

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

        //---- label24 ----
        label24.setText("Collection Foci (check all that apply):");
        panel7.add(label24, cc.xywh(1, 1, 7, 1));

        //---- rights6 ----
        rights6.setText("Historical Records");
        rights6.setOpaque(false);
        rights6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights6.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLL_FOCI_HISTORICAL));
        panel7.add(rights6, cc.xy(3, 3));

        //---- rights7 ----
        rights7.setText("Instutional Records");
        rights7.setOpaque(false);
        rights7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights7.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLL_FOCI_INSTITUTIONAL));
        panel7.add(rights7, cc.xy(5, 3));

        //---- rights8 ----
        rights8.setText("Manuscript Collections");
        rights8.setOpaque(false);
        rights8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights8.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLL_FOCI_MANUSCRIPT));
        panel7.add(rights8, cc.xy(7, 3));

        //---- rights9 ----
        rights9.setText("Personal Papers");
        rights9.setOpaque(false);
        rights9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights9.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLL_FOCI_PERSONAL_PAPERS));
        panel7.add(rights9, cc.xy(3, 5));

        //---- rights10 ----
        rights10.setText("Other");
        rights10.setOpaque(false);
        rights10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        rights10.setText(ATFieldInfo.getLabel(RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLL_FOCI_OTHER));
        panel7.add(rights10, cc.xy(5, 5));
    }
    add(panel7, cc.xywh(1, 17, 3, 1));

    //---- separator5 ----
    separator5.setForeground(new Color(147, 131, 86));
    add(separator5, cc.xywh(1, 19, 3, 1));

    //---- label50 ----
    label50.setText("Major Subject Areas");
    label50.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    ATFieldInfo.assignLabelInfo(label50, RepositoryStatistics.class,
            RepositoryStatistics.PROPERTYNAME_MAJOR_SUBJECT_AREAS);
    add(label50, cc.xywh(1, 21, 3, 1));

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

        //---- title ----
        title.setRows(4);
        title.setLineWrap(true);
        title.setWrapStyleWord(true);
        title.setPreferredSize(new Dimension(200, 64));
        title.setMinimumSize(new Dimension(200, 16));
        scrollPane42.setViewportView(title);
    }
    add(scrollPane42, cc.xywh(1, 23, 3, 1));

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

        //---- label40 ----
        label40.setText("Percentage of collection stored off-site");
        label40.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label40, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_PERCENTAGE_OFF_SITE);
        panel8.add(label40, cc.xy(1, 1));

        //---- extentNumber9 ----
        extentNumber9.setColumns(5);
        panel8.add(extentNumber9, cc.xy(3, 1));
    }
    add(panel8, cc.xywh(1, 25, 3, 1));

    //---- separator6 ----
    separator6.setForeground(new Color(147, 131, 86));
    add(separator6, cc.xywh(1, 27, 3, 1));

    //======== panel10 ========
    {
        panel10.setOpaque(false);
        panel10.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));

        //---- label26 ----
        label26.setText("Repository's Physical Characteristics (complete all that apply):");
        panel10.add(label26, cc.xywh(1, 1, 9, 1));

        //---- label56 ----
        label56.setText("Net usable area");
        label56.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label56, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_NET_USABLE_AREA);
        panel10.add(label56, cc.xy(3, 3));

        //---- extentNumber14 ----
        extentNumber14.setColumns(5);
        panel10.add(extentNumber14, cc.xy(5, 3));

        //---- label57 ----
        label57.setText("Administrative offices");
        label57.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label57, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_ADMINISTRATION_OFFICES);
        panel10.add(label57, cc.xy(7, 3));

        //---- extentNumber15 ----
        extentNumber15.setColumns(5);
        panel10.add(extentNumber15, cc.xywh(9, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- label60 ----
        label60.setText("Classroom(s)");
        label60.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label60, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_CLASSROOMS);
        panel10.add(label60, cc.xy(11, 3));

        //---- extentNumber18 ----
        extentNumber18.setColumns(5);
        panel10.add(extentNumber18, cc.xywh(13, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

        //---- label58 ----
        label58.setText("Collections storage");
        label58.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label58, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_COLLECTIONS_STORAGE);
        panel10.add(label58, cc.xy(3, 5));

        //---- extentNumber16 ----
        extentNumber16.setColumns(5);
        panel10.add(extentNumber16, cc.xy(5, 5));

        //---- label59 ----
        label59.setText("Reading room");
        label59.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label59, RepositoryStatistics.class,
                RepositoryStatistics.PROPERTYNAME_READING_ROOM);
        panel10.add(label59, cc.xy(7, 5));

        //---- extentNumber17 ----
        extentNumber17.setColumns(5);
        panel10.add(extentNumber17, cc.xywh(9, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    }
    add(panel10, cc.xywh(1, 29, 3, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}