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

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

Introduction

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

Prototype

public static ConstantSize dluX(int value) 

Source Link

Document

Creates and returns a ConstantSize for the specified value in horizontal dialog units.

Usage

From source file:org.archiviststoolkit.dialog.ReportDialog.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    mainHeaderPanel = new JPanel();
    mainHeaderLabel = new JLabel();
    subHeaderPanel = new JPanel();
    subHeaderLabel = new JLabel();
    mainPanel = new JPanel();
    buttonBar = new JPanel();
    openReportFileButton = new JButton();
    cancelButton = new JButton();
    previewButton = new JButton();
    printButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);// ww  w  . j ava2  s .co m
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

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

            //======== mainHeaderPanel ========
            {
                mainHeaderPanel.setBackground(new Color(80, 69, 57));
                mainHeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                mainHeaderPanel.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

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

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

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

        //======== mainPanel ========
        {
            mainPanel.setOpaque(false);
            mainPanel.setBorder(Borders.DIALOG_BORDER);
            mainPanel.setLayout(new BorderLayout());

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

                //---- openReportFileButton ----
                openReportFileButton.setText("Load Report Definition File");
                openReportFileButton.setOpaque(false);
                openReportFileButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        openReportFileButtonActionPerformed();
                    }
                });
                buttonBar.add(openReportFileButton, cc.xy(4, 1));

                //---- cancelButton ----
                cancelButton.setText("Cancel");
                cancelButton.setOpaque(false);
                cancelButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        cancelButtonActionPerformed();
                    }
                });
                buttonBar.add(cancelButton, cc.xy(6, 1));

                //---- previewButton ----
                previewButton.setText("Preview");
                previewButton.setOpaque(false);
                previewButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        previewButtonActionPerformed();
                    }
                });
                buttonBar.add(previewButton, cc.xy(8, 1));

                //---- printButton ----
                printButton.setText("Print");
                printButton.setOpaque(false);
                printButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        printButtonActionPerformed();
                    }
                });
                buttonBar.add(printButton, cc.xy(10, 1));
            }
            mainPanel.add(buttonBar, BorderLayout.SOUTH);
        }
        dialogPane.add(mainPanel, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.dialog.SubjectTermLookup.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    mainHeaderPanel = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPane = new JPanel();
    label1 = new JLabel();
    subjectLookup = new JTextField();
    scrollPane1 = new JScrollPane();
    subjectLookupTable = new DomainSortableTable(Subjects.class, subjectLookup);
    linkingPanel = new JPanel();
    label3 = new JLabel();
    label4 = new JLabel();
    buttonBar = new JPanel();
    linkSubjectButton = new JButton();
    createSubjectButton = new JButton();
    doneButton = new JButton();
    selectPanel = new JPanel();
    buttonBar2 = new JPanel();
    selectButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);/*from www  .  j a v a  2s .  com*/
    Container contentPane2 = getContentPane();
    contentPane2.setLayout(new BorderLayout());

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

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

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

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

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

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

        //======== contentPane ========
        {
            contentPane.setOpaque(false);
            contentPane
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                            FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            FormFactory.DEFAULT_COLSPEC },
                                    new RowSpec[] { FormFactory.UNRELATED_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("Filter:");
            contentPane.add(label1, cc.xy(2, 2));
            contentPane.add(subjectLookup, cc.xy(4, 2));

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

                //---- subjectLookupTable ----
                subjectLookupTable.setPreferredScrollableViewportSize(new Dimension(450, 300));
                subjectLookupTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        subjectLookupTableMouseClicked(e);
                    }
                });
                subjectLookupTable.addKeyListener(new KeyAdapter() {
                    @Override
                    public void keyTyped(KeyEvent e) {
                        subjectLookupTableKeyTyped(e);
                    }
                });
                scrollPane1.setViewportView(subjectLookupTable);
            }
            contentPane.add(scrollPane1, cc.xywh(2, 4, 3, 1));

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

                //---- label3 ----
                label3.setText("Double click on a Subject Term to add it to the record.");
                linkingPanel.add(label3, cc.xy(1, 1));

                //---- label4 ----
                label4.setText("Or hit enter if a Term is highlighted.");
                linkingPanel.add(label4, cc.xy(1, 3));

                //======== buttonBar ========
                {
                    buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
                    buttonBar.setBackground(new Color(231, 188, 251));
                    buttonBar.setOpaque(false);
                    buttonBar.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC,
                                    FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC },
                            RowSpec.decodeSpecs("pref")));

                    //---- linkSubjectButton ----
                    linkSubjectButton.setText("Link");
                    linkSubjectButton.setOpaque(false);
                    linkSubjectButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkSubjectButtonActionPerformed();
                        }
                    });
                    buttonBar.add(linkSubjectButton, cc.xy(1, 1));

                    //---- createSubjectButton ----
                    createSubjectButton.setText("Create Subject");
                    createSubjectButton.setOpaque(false);
                    createSubjectButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            createSubjectButtonActionPerformed();
                        }
                    });
                    buttonBar.add(createSubjectButton, cc.xy(3, 1));

                    //---- doneButton ----
                    doneButton.setText("Close Window");
                    doneButton.setOpaque(false);
                    doneButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            doneButtonActionPerformed();
                        }
                    });
                    buttonBar.add(doneButton, cc.xy(5, 1));
                }
                linkingPanel.add(buttonBar,
                        cc.xywh(1, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            }
            contentPane.add(linkingPanel, cc.xywh(2, 6, 3, 1));

            //======== selectPanel ========
            {
                selectPanel.setOpaque(false);
                selectPanel.setLayout(new FormLayout("default:grow", "default"));

                //======== buttonBar2 ========
                {
                    buttonBar2.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
                    buttonBar2.setBackground(new Color(231, 188, 251));
                    buttonBar2.setOpaque(false);
                    buttonBar2
                            .setLayout(new FormLayout(
                                    new ColumnSpec[] { FormFactory.BUTTON_COLSPEC,
                                            FormFactory.RELATED_GAP_COLSPEC, FormFactory.BUTTON_COLSPEC },
                                    RowSpec.decodeSpecs("pref")));

                    //---- selectButton ----
                    selectButton.setText("Select");
                    selectButton.setOpaque(false);
                    selectButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            selectButtonActionPerformed();
                        }
                    });
                    buttonBar2.add(selectButton, cc.xy(1, 1));

                    //---- cancelButton ----
                    cancelButton.setText("Cancel");
                    cancelButton.setOpaque(false);
                    cancelButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            doneButtonActionPerformed();
                        }
                    });
                    buttonBar2.add(cancelButton, cc.xy(3, 1));
                }
                selectPanel.add(buttonBar2,
                        cc.xywh(1, 1, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            }
            contentPane.add(selectPanel, cc.xywh(2, 8, 3, 1));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

}

From source file:org.archiviststoolkit.dialog.UserPreferencesDialog.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    panel1 = new JPanel();
    contentPanel = new JPanel();
    label1 = new JLabel();
    connectionUrl = new JComboBox();
    label2 = new JLabel();
    userName = new JTextField();
    label3 = new JLabel();
    password = new JPasswordField();
    label4 = new JLabel();
    databaseTypes = ATBasicComponentFactory.createUnboundComboBox(SessionFactory.getDatabaseTypesList(true));
    buttonBar = new JPanel();
    openDBFileButton = new JButton();
    saveButton = new JButton();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);//from w  ww  .  j ava  2s  . c om
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(null);
        dialogPane.setBackground(new Color(200, 205, 232));
        dialogPane.setPreferredSize(new Dimension(600, 238));
        dialogPane.setMinimumSize(new Dimension(600, 238));
        dialogPane.setLayout(new BorderLayout());

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

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

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

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

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

        //======== panel1 ========
        {
            panel1.setOpaque(false);
            panel1.setBorder(Borders.DIALOG_BORDER);
            panel1.setLayout(new FormLayout(ColumnSpec.decodeSpecs("max(default;400px):grow"), new RowSpec[] {
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //======== contentPanel ========
            {
                contentPanel.setBorder(
                        new TitledBorder(null, "Database Properties", TitledBorder.LEADING, TitledBorder.TOP));
                contentPanel.setOpaque(false);
                contentPanel
                        .setLayout(
                                new FormLayout(
                                        new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.MINIMUM, 0.1),
                                                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 }));

                //---- label1 ----
                label1.setText("Connection URL");
                contentPanel.add(label1, new CellConstraints(1, 1, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- connectionUrl ----
                connectionUrl.setEditable(true);
                connectionUrl.addItemListener(new ItemListener() {
                    public void itemStateChanged(ItemEvent e) {
                        updateConnectionUrlInformation();
                    }
                });
                contentPanel.add(connectionUrl, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label2 ----
                label2.setText("Username");
                contentPanel.add(label2, new CellConstraints(1, 3, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));
                contentPanel.add(userName, new CellConstraints(3, 3, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label3 ----
                label3.setText("Password");
                contentPanel.add(label3, new CellConstraints(1, 5, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));
                contentPanel.add(password, new CellConstraints(3, 5, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label4 ----
                label4.setText("Database Type");
                contentPanel.add(label4, new CellConstraints(1, 7, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- databaseTypes ----
                databaseTypes.setOpaque(false);
                databaseTypes.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        databaseTypesActionPerformed();
                    }
                });
                contentPanel.add(databaseTypes, cc.xy(3, 7, CellConstraints.LEFT, CellConstraints.DEFAULT));
            }
            panel1.add(contentPanel, cc.xy(1, 1));

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

                //---- openDBFileButton ----
                openDBFileButton.setText("Open Internal Database File");
                openDBFileButton.setVisible(false);
                openDBFileButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        openDBFileButtonActionPerformed();
                    }
                });
                buttonBar.add(openDBFileButton, cc.xy(2, 1));

                //---- saveButton ----
                saveButton.setText("Save");
                saveButton.setOpaque(false);
                saveButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        storeConnectionUrlInformation();
                    }
                });
                buttonBar.add(saveButton, cc.xy(4, 1));

                //---- okButton ----
                okButton.setText("OK");
                okButton.setOpaque(false);
                okButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        okButtonActionPerformed(e);
                    }
                });
                buttonBar.add(okButton, cc.xy(6, 1));

                //---- cancelButton ----
                cancelButton.setText("Cancel");
                cancelButton.setOpaque(false);
                cancelButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        cancelButtonActionPerformed(e);
                    }
                });
                buttonBar.add(cancelButton, cc.xy(8, 1));
            }
            panel1.add(buttonBar, cc.xy(1, 3));
        }
        dialogPane.add(panel1, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    tabbedPane1 = new JTabbedPane();
    panel1 = new JPanel();
    panel5 = new JPanel();
    label2 = new JLabel();
    scrollPane1 = new JScrollPane();
    accessionsTable = new DomainSortableTable();
    panel6 = new JPanel();
    button1 = new JButton();
    button2 = new JButton();
    panel13 = new JPanel();
    label6 = new JLabel();
    textField1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_WHO_DID_SURVEY));
    label35 = new JLabel();
    textField17 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Assessments.PROPERTYNAME_DATE_OF_SURVEY));
    label34 = new JLabel();
    textField18 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_USER_WHO_CREATED_RECORD));
    label7 = new JLabel();
    textField2 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Assessments.PROPERTYNAME_AMOUNT_OF_TIME_SURVEY_TOOK);
    label8 = new JLabel();
    checkBox2 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_REVIEW_NEEDED,
            Assessments.class);
    label9 = new JLabel();
    textField3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Assessments.PROPERTYNAME_WHO_NEEDS_TO_REVIEW));
    panel7 = new JPanel();
    label3 = new JLabel();
    scrollPane2 = new JScrollPane();
    resourcesTable = new DomainSortableTable();
    panel8 = new JPanel();
    button3 = new JButton();
    button4 = new JButton();
    panel9 = new JPanel();
    label4 = new JLabel();
    scrollPane3 = new JScrollPane();
    digitalObjectsTable = new DomainSortableTable();
    panel10 = new JPanel();
    button5 = new JButton();
    button6 = new JButton();
    panel11 = new JPanel();
    label5 = new JLabel();
    scrollPane4 = new JScrollPane();
    reviewNoteTextArea = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_REVIEW_NOTE));
    panel12 = new JPanel();
    checkBox1 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_INACTIVE,
            Assessments.class);
    panel2 = new JPanel();
    panel14 = new JPanel();
    label10 = new JLabel();
    textField4 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_CONDITION_OF_MATERIAL_RATING, 1, 5);
    label12 = new JLabel();
    textField6 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_QUALITY_OF_HOUSING_RATING, 1, 5);
    label11 = new JLabel();
    textField5 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_PHYSICAL_ACCESS_RATING, 1, 5);
    label13 = new JLabel();
    textField7 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_INTELLECTUAL_ACCESS_RATING, 1, 5);
    label15 = new JLabel();
    textField9 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_DOCUMENTATION_QUALITY_RATING, 1, 5);
    label14 = new JLabel();
    textField8 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_INTEREST_RATING, 1, 5);
    label16 = new JLabel();
    textField10 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_RESEARCH_VALUE_RATING);
    label17 = new JLabel();
    textField11 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_USER_NUMERICAL_RATING1, 1, 5);
    label18 = new JLabel();
    textField12 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Assessments.PROPERTYNAME_USER_NUMERICAL_RATING2, 1, 5);
    panel17 = new JPanel();
    label25 = new JLabel();
    checkBox3 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1, Assessments.class);
    checkBox6 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE4, Assessments.class);
    checkBox4 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE2, Assessments.class);
    checkBox7 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE5, Assessments.class);
    checkBox5 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE3, Assessments.class);
    checkBox8 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE6, Assessments.class);
    panel15 = new JPanel();
    label19 = new JLabel();
    scrollPane5 = new JScrollPane();
    textArea1 = ATBasicComponentFactory//from  ww w . j  a  v  a 2  s.  c om
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_GENERAL_NOTE));
    panel16 = new JPanel();
    label20 = new JLabel();
    label21 = new JLabel();
    textField13 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Assessments.PROPERTYNAME_ESTIMATED_PROCESSING_TIME_PER_FOOT);
    label23 = new JLabel();
    textField14 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Assessments.PROPERTYNAME_TOTAL_EXTENT);
    label22 = new JLabel();
    textField15 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Assessments.PROPERTYNAME_TOTAL_ESTIMATED_PROCESSING_TIME);
    label24 = new JLabel();
    panel18 = new JPanel();
    panel19 = new JPanel();
    label26 = new JLabel();
    checkBox9 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1, Assessments.class);
    checkBox13 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE5, Assessments.class);
    checkBox10 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE2, Assessments.class);
    checkBox14 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE6, Assessments.class);
    checkBox11 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE3, Assessments.class);
    checkBox15 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE7, Assessments.class);
    checkBox12 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE4, Assessments.class);
    checkBox16 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE8, Assessments.class);
    label27 = new JLabel();
    scrollPane6 = new JScrollPane();
    textArea2 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_CONSERVATION_NOTE));
    panel3 = new JPanel();
    panel20 = new JPanel();
    label28 = new JLabel();
    label29 = new JLabel();
    checkBox17 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT1,
            Assessments.class);
    checkBox25 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT9,
            Assessments.class);
    checkBox18 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT2,
            Assessments.class);
    checkBox26 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT10,
            Assessments.class);
    checkBox19 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT3,
            Assessments.class);
    checkBox27 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT11,
            Assessments.class);
    checkBox20 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT4,
            Assessments.class);
    checkBox28 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT12,
            Assessments.class);
    checkBox21 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT5,
            Assessments.class);
    checkBox29 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT13,
            Assessments.class);
    checkBox22 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT6,
            Assessments.class);
    checkBox30 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT14,
            Assessments.class);
    checkBox23 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT7,
            Assessments.class);
    checkBox31 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT15,
            Assessments.class);
    checkBox24 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT8,
            Assessments.class);
    checkBox32 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT16,
            Assessments.class);
    checkBox33 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT17,
            Assessments.class);
    checkBox34 = ATBasicComponentFactory.createCheckBox(detailsModel, Assessments.PROPERTYNAME_SPECIAL_FORMAT18,
            Assessments.class);
    panel22 = new JPanel();
    label31 = new JLabel();
    scrollPane8 = new JScrollPane();
    textArea4 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_EXHIBITION_VALUE_NOTE));
    panel23 = new JPanel();
    label32 = new JLabel();
    textField16 = ATBasicComponentFactory.createCurrencyField(detailsModel,
            Assessments.PROPERTYNAME_MONETARY_VALUE, true);
    panel21 = new JPanel();
    label30 = new JLabel();
    scrollPane7 = new JScrollPane();
    textArea3 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_SPECIAL_FORMAT_NOTE));
    panel25 = new JPanel();
    label33 = new JLabel();
    scrollPane9 = new JScrollPane();
    textArea5 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Assessments.PROPERTYNAME_MONETARY_VALUE_NOTE));
    panel4 = new JPanel();
    label1 = new JLabel();
    assessmentNumber = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new BorderLayout());

    //======== tabbedPane1 ========
    {
        tabbedPane1.setBackground(new Color(200, 205, 232));
        tabbedPane1.setBorder(new EmptyBorder(0, 10, 0, 10));

        //======== panel1 ========
        {
            panel1.setBackground(new Color(200, 205, 232));
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC },
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));

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

                //---- label2 ----
                label2.setText("Accessions Linked to this assessment record");
                panel5.add(label2, BorderLayout.NORTH);

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

                    //---- accessionsTable ----
                    accessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
                    scrollPane1.setViewportView(accessionsTable);
                }
                panel5.add(scrollPane1, BorderLayout.CENTER);

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

                    //---- button1 ----
                    button1.setText("Link Accession");
                    button1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkAccessionActionPerformed();
                        }
                    });
                    panel6.add(button1, cc.xy(3, 1));

                    //---- button2 ----
                    button2.setText("Remove Link");
                    button2.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeAccessionActionPerformed();
                        }
                    });
                    panel6.add(button2, cc.xy(5, 1));
                }
                panel5.add(panel6, BorderLayout.SOUTH);
            }
            panel1.add(panel5, cc.xy(1, 1));

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

                //---- label6 ----
                label6.setText("Surveyed by");
                ATFieldInfo.assignLabelInfo(label6, Assessments.class, Assessments.PROPERTYNAME_WHO_DID_SURVEY);
                panel13.add(label6, cc.xy(1, 1));
                panel13.add(textField1, cc.xywh(3, 1, 7, 1));

                //---- label35 ----
                label35.setText("Date of survey");
                ATFieldInfo.assignLabelInfo(label35, Assessments.class,
                        Assessments.PROPERTYNAME_DATE_OF_SURVEY);
                panel13.add(label35, cc.xy(1, 3));
                panel13.add(textField17, cc.xywh(3, 3, 7, 1));

                //---- label34 ----
                label34.setText("User who created record");
                ATFieldInfo.assignLabelInfo(label34, Assessments.class,
                        Assessments.PROPERTYNAME_USER_WHO_CREATED_RECORD);
                panel13.add(label34, cc.xy(1, 5));
                panel13.add(textField18, cc.xywh(3, 5, 7, 1));

                //---- label7 ----
                label7.setText("Time it took to complete survey");
                ATFieldInfo.assignLabelInfo(label7, Assessments.class,
                        Assessments.PROPERTYNAME_AMOUNT_OF_TIME_SURVEY_TOOK);
                panel13.add(label7, cc.xywh(1, 7, 5, 1));

                //---- textField2 ----
                textField2.setColumns(4);
                panel13.add(textField2, cc.xy(7, 7));

                //---- label8 ----
                label8.setText("hours");
                panel13.add(label8, cc.xy(9, 7));

                //---- checkBox2 ----
                checkBox2.setText("Review needed");
                checkBox2.setBackground(new Color(200, 205, 232));
                checkBox2.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_REVIEW_NEEDED));
                panel13.add(checkBox2, cc.xywh(1, 9, 5, 1));

                //---- label9 ----
                label9.setText("Who needs to review");
                ATFieldInfo.assignLabelInfo(label9, Assessments.class,
                        Assessments.PROPERTYNAME_WHO_NEEDS_TO_REVIEW);
                panel13.add(label9, cc.xy(1, 11));
                panel13.add(textField3, cc.xywh(3, 11, 7, 1));
            }
            panel1.add(panel13, cc.xy(5, 1));

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

                //---- label3 ----
                label3.setText("Resources Linked to this assessment record");
                panel7.add(label3, BorderLayout.NORTH);

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

                    //---- resourcesTable ----
                    resourcesTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
                    scrollPane2.setViewportView(resourcesTable);
                }
                panel7.add(scrollPane2, BorderLayout.CENTER);

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

                    //---- button3 ----
                    button3.setText("Link Resource");
                    button3.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkResourceActionPerformed();
                        }
                    });
                    panel8.add(button3, cc.xy(3, 1));

                    //---- button4 ----
                    button4.setText("Remove Link");
                    button4.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeResourceActionPerformed();
                        }
                    });
                    panel8.add(button4, cc.xy(5, 1));
                }
                panel7.add(panel8, BorderLayout.SOUTH);
            }
            panel1.add(panel7, cc.xy(1, 3));

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

                //---- label4 ----
                label4.setText("Digital Objects Linked to this assessment record");
                panel9.add(label4, BorderLayout.NORTH);

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

                    //---- digitalObjectsTable ----
                    digitalObjectsTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
                    scrollPane3.setViewportView(digitalObjectsTable);
                }
                panel9.add(scrollPane3, BorderLayout.CENTER);

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

                    //---- button5 ----
                    button5.setText("Link Digital Object");
                    button5.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkDigitalObjectActionPerformed();
                        }
                    });
                    panel10.add(button5, cc.xy(3, 1));

                    //---- button6 ----
                    button6.setText("Remove Link");
                    button6.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeDigitalObjectActionPerformed();
                        }
                    });
                    panel10.add(button6, cc.xy(5, 1));
                }
                panel9.add(panel10, BorderLayout.SOUTH);
            }
            panel1.add(panel9, cc.xy(1, 5));

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

                //---- label5 ----
                label5.setText("Review note");
                ATFieldInfo.assignLabelInfo(label5, Assessments.class, Assessments.PROPERTYNAME_REVIEW_NOTE);
                panel11.add(label5, BorderLayout.NORTH);

                //======== scrollPane4 ========
                {

                    //---- reviewNoteTextArea ----
                    reviewNoteTextArea.setRows(10);
                    reviewNoteTextArea.setColumns(25);
                    reviewNoteTextArea.setLineWrap(true);
                    scrollPane4.setViewportView(reviewNoteTextArea);
                }
                panel11.add(scrollPane4, BorderLayout.CENTER);

                //======== panel12 ========
                {
                    panel12.setBackground(new Color(200, 205, 232));
                    panel12.setLayout(new FlowLayout(FlowLayout.LEFT));

                    //---- checkBox1 ----
                    checkBox1.setText("inactive");
                    checkBox1.setBackground(new Color(200, 205, 232));
                    checkBox1.setText(
                            ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_INACTIVE));
                    panel12.add(checkBox1);
                }
                panel11.add(panel12, BorderLayout.SOUTH);
            }
            panel1.add(panel11, cc.xywh(5, 3, 1, 3));
        }
        tabbedPane1.addTab("Basic Information", panel1);

        //======== panel2 ========
        {
            panel2.setBackground(new Color(200, 205, 232));
            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[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

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

                //---- label10 ----
                label10.setText("Condition of material");
                ATFieldInfo.assignLabelInfo(label10, Assessments.class,
                        Assessments.PROPERTYNAME_CONDITION_OF_MATERIAL_RATING);
                panel14.add(label10, cc.xy(1, 1));

                //---- textField4 ----
                textField4.setColumns(2);
                panel14.add(textField4, cc.xy(3, 1));

                //---- label12 ----
                label12.setText("Quality of housing");
                ATFieldInfo.assignLabelInfo(label12, Assessments.class,
                        Assessments.PROPERTYNAME_QUALITY_OF_HOUSING_RATING);
                panel14.add(label12, cc.xy(5, 1));

                //---- textField6 ----
                textField6.setColumns(2);
                panel14.add(textField6, cc.xy(7, 1));

                //---- label11 ----
                label11.setText("Physical access");
                ATFieldInfo.assignLabelInfo(label11, Assessments.class,
                        Assessments.PROPERTYNAME_PHYSICAL_ACCESS_RATING);
                panel14.add(label11, cc.xy(1, 3));

                //---- textField5 ----
                textField5.setColumns(2);
                panel14.add(textField5, cc.xy(3, 3));

                //---- label13 ----
                label13.setText("Intellectual Access");
                ATFieldInfo.assignLabelInfo(label13, Assessments.class,
                        Assessments.PROPERTYNAME_INTELLECTUAL_ACCESS_RATING);
                panel14.add(label13, cc.xy(5, 3));

                //---- textField7 ----
                textField7.setColumns(2);
                panel14.add(textField7, cc.xy(7, 3));

                //---- label15 ----
                label15.setText("Document Quality");
                ATFieldInfo.assignLabelInfo(label15, Assessments.class,
                        Assessments.PROPERTYNAME_DOCUMENTATION_QUALITY_RATING);
                panel14.add(label15, cc.xy(1, 5));

                //---- textField9 ----
                textField9.setColumns(2);
                textField9.addFocusListener(new FocusAdapter() {
                    @Override
                    public void focusLost(FocusEvent e) {
                        setResearchValueRating();
                    }
                });
                panel14.add(textField9, cc.xy(3, 5));

                //---- label14 ----
                label14.setText("Interest");
                ATFieldInfo.assignLabelInfo(label14, Assessments.class,
                        Assessments.PROPERTYNAME_INTEREST_RATING);
                panel14.add(label14, cc.xy(5, 5));

                //---- textField8 ----
                textField8.setColumns(2);
                textField8.addFocusListener(new FocusAdapter() {
                    @Override
                    public void focusLost(FocusEvent e) {
                        setResearchValueRating();
                    }
                });
                panel14.add(textField8, cc.xy(7, 5));

                //---- label16 ----
                label16.setText("Research Value");
                ATFieldInfo.assignLabelInfo(label16, Assessments.class,
                        Assessments.PROPERTYNAME_RESEARCH_VALUE_RATING);
                panel14.add(label16, cc.xy(5, 7));

                //---- textField10 ----
                textField10.setColumns(2);
                textField10.setEditable(false);
                panel14.add(textField10, cc.xy(7, 7));

                //---- label17 ----
                label17.setText("User Rating 1");
                ATFieldInfo.assignLabelInfo(label17, Assessments.class,
                        Assessments.PROPERTYNAME_USER_NUMERICAL_RATING1);
                panel14.add(label17, cc.xy(1, 9));

                //---- textField11 ----
                textField11.setColumns(2);
                panel14.add(textField11, cc.xy(3, 9));

                //---- label18 ----
                label18.setText("User Rating 2");
                ATFieldInfo.assignLabelInfo(label18, Assessments.class,
                        Assessments.PROPERTYNAME_USER_NUMERICAL_RATING2);
                panel14.add(label18, cc.xy(5, 9));

                //---- textField12 ----
                textField12.setColumns(2);
                panel14.add(textField12, cc.xy(7, 9));
            }
            panel2.add(panel14, cc.xy(1, 1));

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

                //---- label25 ----
                label25.setText("Special Conservation issues");
                ATFieldInfo.assignLabelTooltip(label25, Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1);
                panel17.add(label25, cc.xywh(1, 1, 3, 1));

                //---- checkBox3 ----
                checkBox3.setText("mold damage");
                checkBox3.setBackground(new Color(200, 205, 232));
                checkBox3.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE1));
                panel17.add(checkBox3, cc.xy(3, 3));

                //---- checkBox6 ----
                checkBox6.setText("Special conservation issue1");
                checkBox6.setBackground(new Color(200, 205, 232));
                checkBox6.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE4));
                panel17.add(checkBox6, cc.xy(5, 3));

                //---- checkBox4 ----
                checkBox4.setText("pest damage");
                checkBox4.setBackground(new Color(200, 205, 232));
                checkBox4.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE2));
                panel17.add(checkBox4, cc.xy(3, 5));

                //---- checkBox7 ----
                checkBox7.setText("Special conservation issue2");
                checkBox7.setBackground(new Color(200, 205, 232));
                checkBox7.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE5));
                panel17.add(checkBox7, cc.xy(5, 5));

                //---- checkBox5 ----
                checkBox5.setText("deteriorating film base");
                checkBox5.setBackground(new Color(200, 205, 232));
                checkBox5.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE3));
                panel17.add(checkBox5, cc.xy(3, 7));

                //---- checkBox8 ----
                checkBox8.setText("Special conservation issue3");
                checkBox8.setBackground(new Color(200, 205, 232));
                checkBox8.setText(ATFieldInfo.getLabel(Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_CONSERVATION_ISSUE6));
                panel17.add(checkBox8, cc.xy(5, 7));
            }
            panel2.add(panel17, cc.xy(5, 1));

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

                //---- label19 ----
                label19.setText("General note");
                ATFieldInfo.assignLabelTooltip(label19, Assessments.class,
                        Assessments.PROPERTYNAME_GENERAL_NOTE);
                panel15.add(label19, BorderLayout.NORTH);

                //======== scrollPane5 ========
                {

                    //---- textArea1 ----
                    textArea1.setRows(8);
                    textArea1.setColumns(25);
                    textArea1.setLineWrap(true);
                    scrollPane5.setViewportView(textArea1);
                }
                panel15.add(scrollPane5, BorderLayout.CENTER);
            }
            panel2.add(panel15, cc.xy(1, 3));

            //======== panel16 ========
            {
                panel16.setBackground(new Color(200, 205, 232));
                panel16.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(Sizes.dluX(82)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(Sizes.dluX(23)) },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- label20 ----
                label20.setText("Estimated processing time (EPT)");
                panel16.add(label20, cc.xywh(1, 5, 9, 1));

                //---- label21 ----
                label21.setText("Hours per foot");
                ATFieldInfo.assignLabelTooltip(label21, Assessments.class,
                        Assessments.PROPERTYNAME_ESTIMATED_PROCESSING_TIME_PER_FOOT);
                panel16.add(label21, cc.xy(3, 7));

                //---- textField13 ----
                textField13.setColumns(5);
                textField13.addFocusListener(new FocusAdapter() {
                    @Override
                    public void focusLost(FocusEvent e) {
                        calculateTotalEPT();
                    }
                });
                panel16.add(textField13, cc.xy(5, 7));

                //---- label23 ----
                label23.setText("Multiplied by total extent");
                ATFieldInfo.assignLabelTooltip(label23, Assessments.class,
                        Assessments.PROPERTYNAME_TOTAL_EXTENT);
                panel16.add(label23, cc.xy(7, 7));

                //---- textField14 ----
                textField14.setColumns(5);
                textField14.addFocusListener(new FocusAdapter() {
                    @Override
                    public void focusLost(FocusEvent e) {
                        calculateTotalEPT();
                    }
                });
                panel16.add(textField14, cc.xy(9, 7));

                //---- label22 ----
                label22.setText("Equals Total EPT");
                ATFieldInfo.assignLabelTooltip(label22, Assessments.class,
                        Assessments.PROPERTYNAME_TOTAL_ESTIMATED_PROCESSING_TIME);
                panel16.add(label22, cc.xy(3, 9));

                //---- textField15 ----
                textField15.setColumns(5);
                textField15.setEditable(false);
                panel16.add(textField15, cc.xy(5, 9));

                //---- label24 ----
                label24.setText("hours");
                panel16.add(label24, cc.xy(7, 9));
            }
            panel2.add(panel16, cc.xy(1, 5));

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

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

                    //---- label26 ----
                    label26.setText("Other Conservation issues");
                    ATFieldInfo.assignLabelTooltip(label26, Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1);
                    panel19.add(label26, cc.xywh(1, 1, 5, 1));

                    //---- checkBox9 ----
                    checkBox9.setText("Brittle paper");
                    checkBox9.setBackground(new Color(200, 205, 232));
                    checkBox9.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE1));
                    panel19.add(checkBox9, cc.xy(3, 3));

                    //---- checkBox13 ----
                    checkBox13.setText("Thermofax paper");
                    checkBox13.setBackground(new Color(200, 205, 232));
                    checkBox13.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE5));
                    panel19.add(checkBox13, cc.xy(5, 3));

                    //---- checkBox10 ----
                    checkBox10.setText("Metal fasteners");
                    checkBox10.setBackground(new Color(200, 205, 232));
                    checkBox10.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE2));
                    panel19.add(checkBox10, cc.xy(3, 5));

                    //---- checkBox14 ----
                    checkBox14.setText("Other conservation issue1");
                    checkBox14.setBackground(new Color(200, 205, 232));
                    checkBox14.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE6));
                    panel19.add(checkBox14, cc.xy(5, 5));

                    //---- checkBox11 ----
                    checkBox11.setText("Newspaper");
                    checkBox11.setBackground(new Color(200, 205, 232));
                    checkBox11.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE3));
                    panel19.add(checkBox11, cc.xy(3, 7));

                    //---- checkBox15 ----
                    checkBox15.setText("Other conservation issue2");
                    checkBox15.setBackground(new Color(200, 205, 232));
                    checkBox15.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE7));
                    panel19.add(checkBox15, cc.xy(5, 7));

                    //---- checkBox12 ----
                    checkBox12.setText("Tape");
                    checkBox12.setBackground(new Color(200, 205, 232));
                    checkBox12.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE4));
                    panel19.add(checkBox12, cc.xy(3, 9));

                    //---- checkBox16 ----
                    checkBox16.setText("Other conservation issue3");
                    checkBox16.setBackground(new Color(200, 205, 232));
                    checkBox16.setText(ATFieldInfo.getLabel(Assessments.class,
                            Assessments.PROPERTYNAME_OTHER_CONSERVATION_ISSUE8));
                    panel19.add(checkBox16, cc.xy(5, 9));

                    //---- label27 ----
                    label27.setText("Conservation note");
                    ATFieldInfo.assignLabelTooltip(label27, Assessments.class,
                            Assessments.PROPERTYNAME_CONSERVATION_NOTE);
                    panel19.add(label27, cc.xywh(1, 11, 5, 1));
                }
                panel18.add(panel19, BorderLayout.NORTH);

                //======== scrollPane6 ========
                {

                    //---- textArea2 ----
                    textArea2.setColumns(25);
                    textArea2.setRows(8);
                    textArea2.setLineWrap(true);
                    scrollPane6.setViewportView(textArea2);
                }
                panel18.add(scrollPane6, BorderLayout.CENTER);
            }
            panel2.add(panel18, cc.xywh(5, 3, 1, 3));
        }
        tabbedPane1.addTab("Survey", panel2);

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

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

                //---- label28 ----
                label28.setText("Special Formats");
                ATFieldInfo.assignLabelTooltip(label28, Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_FORMAT1);
                panel20.add(label28, cc.xywh(1, 1, 5, 1));

                //---- label29 ----
                label29.setText("Check all that apply");
                panel20.add(label29, cc.xywh(3, 3, 3, 1));

                //---- checkBox17 ----
                checkBox17.setText("Architectural materials");
                checkBox17.setBackground(new Color(200, 205, 232));
                checkBox17.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT1));
                panel20.add(checkBox17, cc.xy(3, 5));

                //---- checkBox25 ----
                checkBox25.setText("Glass");
                checkBox25.setBackground(new Color(200, 205, 232));
                checkBox25.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT9));
                panel20.add(checkBox25, cc.xy(5, 5));

                //---- checkBox18 ----
                checkBox18.setText("Art originals");
                checkBox18.setBackground(new Color(200, 205, 232));
                checkBox18.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT2));
                panel20.add(checkBox18, cc.xy(3, 7));

                //---- checkBox26 ----
                checkBox26.setText("Photographs");
                checkBox26.setBackground(new Color(200, 205, 232));
                checkBox26.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT10));
                panel20.add(checkBox26, cc.xy(5, 7));

                //---- checkBox19 ----
                checkBox19.setText("Artifacts");
                checkBox19.setBackground(new Color(200, 205, 232));
                checkBox19.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT3));
                panel20.add(checkBox19, cc.xy(3, 9));

                //---- checkBox27 ----
                checkBox27.setText("Scrapbooks");
                checkBox27.setBackground(new Color(200, 205, 232));
                checkBox27.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT11));
                panel20.add(checkBox27, cc.xy(5, 9));

                //---- checkBox20 ----
                checkBox20.setText("Audio materials");
                checkBox20.setBackground(new Color(200, 205, 232));
                checkBox20.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT4));
                panel20.add(checkBox20, cc.xy(3, 11));

                //---- checkBox28 ----
                checkBox28.setText("<html>Technical Drawings<br>& Schematics");
                checkBox28.setBackground(new Color(200, 205, 232));
                //checkBox28.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT12));
                panel20.add(checkBox28, cc.xy(5, 11));

                //---- checkBox21 ----
                checkBox21.setText("Biological specimens");
                checkBox21.setBackground(new Color(200, 205, 232));
                checkBox21.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT5));
                panel20.add(checkBox21, cc.xy(3, 13));

                //---- checkBox29 ----
                checkBox29.setText("Textiles");
                checkBox29.setBackground(new Color(200, 205, 232));
                checkBox29.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT13));
                panel20.add(checkBox29, cc.xy(5, 13));

                //---- checkBox22 ----
                checkBox22.setText("Botanical specimens");
                checkBox22.setBackground(new Color(200, 205, 232));
                checkBox22.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT6));
                panel20.add(checkBox22, cc.xy(3, 15));

                //---- checkBox30 ----
                checkBox30.setText("Vellum & Parchment");
                checkBox30.setBackground(new Color(200, 205, 232));
                //checkBox30.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT14));
                panel20.add(checkBox30, cc.xy(5, 15));

                //---- checkBox23 ----
                checkBox23.setText("Computer storage units");
                checkBox23.setBackground(new Color(200, 205, 232));
                checkBox23.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT7));
                panel20.add(checkBox23, cc.xy(3, 17));

                //---- checkBox31 ----
                checkBox31.setText("Video Materials");
                checkBox31.setBackground(new Color(200, 205, 232));
                checkBox31.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT15));
                panel20.add(checkBox31, cc.xy(5, 17));

                //---- checkBox24 ----
                checkBox24.setText("<html>Film (negative, slide, <br>or motion picture)");
                checkBox24.setBackground(new Color(200, 205, 232));
                //checkBox24.setText(ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT8));
                panel20.add(checkBox24, cc.xy(3, 19));

                //---- checkBox32 ----
                checkBox32.setText("Other");
                checkBox32.setBackground(new Color(200, 205, 232));
                checkBox32.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT16));
                panel20.add(checkBox32, cc.xy(5, 19));

                //---- checkBox33 ----
                checkBox33.setText("Special Format1");
                checkBox33.setBackground(new Color(200, 205, 232));
                checkBox33.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT17));
                panel20.add(checkBox33, cc.xy(3, 21));

                //---- checkBox34 ----
                checkBox34.setText("Special Format2");
                checkBox34.setBackground(new Color(200, 205, 232));
                checkBox34.setText(
                        ATFieldInfo.getLabel(Assessments.class, Assessments.PROPERTYNAME_SPECIAL_FORMAT18));
                panel20.add(checkBox34, cc.xy(5, 21));
            }
            panel3.add(panel20, cc.xywh(1, 1, 1, 3));

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

                //---- label31 ----
                label31.setText("Exhibition Value note");
                ATFieldInfo.assignLabelInfo(label31, Assessments.class,
                        Assessments.PROPERTYNAME_EXHIBITION_VALUE_NOTE);
                panel22.add(label31, cc.xy(1, 1));

                //======== scrollPane8 ========
                {

                    //---- textArea4 ----
                    textArea4.setColumns(25);
                    textArea4.setRows(14);
                    textArea4.setLineWrap(true);
                    scrollPane8.setViewportView(textArea4);
                }
                panel22.add(scrollPane8, cc.xy(1, 2));

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

                    //---- label32 ----
                    label32.setText("Monetary Value");
                    ATFieldInfo.assignLabelInfo(label32, Assessments.class,
                            Assessments.PROPERTYNAME_MONETARY_VALUE);
                    panel23.add(label32, cc.xy(1, 1));

                    //---- textField16 ----
                    textField16.setColumns(10);
                    panel23.add(textField16, cc.xy(3, 1));
                }
                panel22.add(panel23, cc.xy(1, 4));
            }
            panel3.add(panel22, cc.xywh(5, 1, 1, 3));

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

                //---- label30 ----
                label30.setText("Special Format note");
                label30.setBackground(new Color(200, 205, 232));
                ATFieldInfo.assignLabelInfo(label30, Assessments.class,
                        Assessments.PROPERTYNAME_SPECIAL_FORMAT_NOTE);
                panel21.add(label30, BorderLayout.NORTH);

                //======== scrollPane7 ========
                {

                    //---- textArea3 ----
                    textArea3.setColumns(25);
                    textArea3.setRows(8);
                    textArea3.setLineWrap(true);
                    scrollPane7.setViewportView(textArea3);
                }
                panel21.add(scrollPane7, BorderLayout.CENTER);
            }
            panel3.add(panel21, cc.xy(1, 5));

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

                //---- label33 ----
                label33.setText("Monetary Value note");
                ATFieldInfo.assignLabelInfo(label33, Assessments.class,
                        Assessments.PROPERTYNAME_MONETARY_VALUE_NOTE);
                panel25.add(label33, BorderLayout.NORTH);

                //======== scrollPane9 ========
                {

                    //---- textArea5 ----
                    textArea5.setColumns(25);
                    textArea5.setRows(8);
                    textArea5.setLineWrap(true);
                    scrollPane9.setViewportView(textArea5);
                }
                panel25.add(scrollPane9, BorderLayout.CENTER);
            }
            panel3.add(panel25, cc.xy(5, 5));
        }
        tabbedPane1.addTab("Special Formats & Values", panel3);

    }
    add(tabbedPane1, BorderLayout.CENTER);

    //======== panel4 ========
    {
        panel4.setBackground(new Color(200, 205, 232));
        panel4.setBorder(new EmptyBorder(0, 10, 0, 10));
        panel4.setLayout(new FlowLayout(FlowLayout.RIGHT));

        //---- label1 ----
        label1.setText("Assessment #");
        panel4.add(label1);

        //---- assessmentNumber ----
        assessmentNumber.setText("xxx");
        panel4.add(assessmentNumber);
    }
    add(panel4, BorderLayout.NORTH);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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

License:Open Source License

private void initComponents() {

    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel3 = new JPanel();
    label2 = new JLabel();
    digitalObjectTitle = new JTextField();
    tabbedPane = new JTabbedPane();
    basicInformationPanel = new JPanel();
    panel16 = new JPanel();
    panel1 = new JPanel();
    label_resourcesLanguageCode4 = new JLabel();
    label = ATBasicComponentFactory.createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_LABEL),
            false);//from  w w  w. j  a  v  a 2s .c  o  m
    panel19 = new JPanel();
    label_resourcesTitle = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE),
            false);
    resourcesPanel = new JPanel();
    resourcesLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    resourcesTable = new DomainSortableTable();
    panel13 = new JPanel();
    panel17 = new JPanel();
    panel18 = new JPanel();
    panel15 = new JPanel();
    panel20 = new JPanel();
    ExtentNumberLabel3 = new JLabel();
    label_resourcesDateExpression = new JLabel();
    dateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    panel9 = new JPanel();
    Date1Label = new JLabel();
    label_resourcesDateBegin = new JLabel();
    dateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    dateEnd = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END);
    digitalObjectResourceRecordOnly = new JPanel();
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, DigitalObjects.class);
    label_resourcesLanguageCode3 = new JLabel();
    objectType = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_OBJECT_TYPE,
            DigitalObjects.class);
    actuateLabel2 = new JLabel();
    scrollPane43 = new JScrollPane();
    title2 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(DigitalObjects.PROPERTYNAME_METS_IDENTIFIER), false);
    actuateLabel = new JLabel();
    actuate = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_ACTUATE,
            DigitalObjects.class);
    showLabel = new JLabel();
    show = ATBasicComponentFactory.createComboBox(detailsModel, DigitalObjects.PROPERTYNAME_EAD_DAO_SHOW,
            DigitalObjects.class);
    componentIDPanel = new JPanel();
    componentLabel1 = new JLabel();
    dateExpression2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(DigitalObjects.PROPERTYNAME_COMPONENT_ID), false);
    panel5 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    languageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            DigitalObjects.PROPERTYNAME_LANGUAGE_CODE, DigitalObjects.class);
    repositoryPanel = new JPanel();
    label_repositoryName = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel2 = new JPanel();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    fileVersionsTable = new DomainSortableTable(FileVersions.class,
            FileVersions.PROPERTYNAME_FILE_VERSIONS_USE_STATEMENT);
    panel29 = new JPanel();
    addFileVersionButton = new JButton();
    removeFileVersionButton = new JButton();
    namesPanel = new JPanel();
    SubjectsLabel2 = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel8 = new JPanel();
    editNameRelationshipButton = new JButton();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    separator5 = new JSeparator();
    SubjectsLabel3 = new JLabel();
    scrollPane3 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel11 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    panel6 = new JPanel();
    scrollPane5 = new JScrollPane();
    notesTable = new DomainSortedTable(ArchDescriptionRepeatingData.class);
    panel14 = new JPanel();
    addNoteEtcComboBox = new JComboBox();
    removeNoteButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

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

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

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

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

        //======== basicInformationPanel ========
        {
            basicInformationPanel.setBackground(new Color(200, 205, 232));
            basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            basicInformationPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("left:max(default;300px):grow(0.5)") },
                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));
            ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

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

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

                    //---- label_resourcesLanguageCode4 ----
                    label_resourcesLanguageCode4.setText("Label");
                    label_resourcesLanguageCode4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode4, DigitalObjects.class,
                            DigitalObjects.PROPERTYNAME_LABEL);
                    panel1.add(label_resourcesLanguageCode4, cc.xy(1, 1));
                    panel1.add(label, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT,
                            CellConstraints.TOP, new Insets(0, 0, 0, 5)));
                }
                panel16.add(panel1, cc.xy(1, 1));

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

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

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

                        //---- title ----
                        title.setRows(4);
                        title.setLineWrap(true);
                        title.setWrapStyleWord(true);
                        scrollPane42.setViewportView(title);
                    }
                    panel19.add(scrollPane42,
                            cc.xywh(1, 3, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

                        //======== scrollPane4 ========
                        {
                            scrollPane4
                                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                            scrollPane4.setPreferredSize(new Dimension(300, 50));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            //---- title2 ----
                            title2.setRows(3);
                            title2.setLineWrap(true);
                            title2.setWrapStyleWord(true);
                            scrollPane43.setViewportView(title2);
                        }
                        digitalObjectResourceRecordOnly.add(scrollPane43,
                                cc.xywh(3, 5, 3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

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

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

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

                        //---- componentLabel1 ----
                        componentLabel1.setText("Component ID");
                        componentLabel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(componentLabel1, DigitalObjects.class,
                                DigitalObjects.PROPERTYNAME_COMPONENT_ID);
                        componentIDPanel.add(componentLabel1, cc.xy(1, 1));
                        componentIDPanel.add(dateExpression2, cc.xy(3, 1));
                    }
                    panel17.add(componentIDPanel, cc.xy(1, 5));
                }
                panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            basicInformationPanel.add(panel13,
                    cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

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

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

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

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

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

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

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

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

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

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

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

                    //---- removeFileVersionButton ----
                    removeFileVersionButton.setText("Remove File Version");
                    removeFileVersionButton.setOpaque(false);
                    removeFileVersionButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeFileVersionButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeFileVersionButtonActionPerformed(e);
                        }
                    });
                    panel29.add(removeFileVersionButton, cc.xy(3, 1));
                }
                panel2.add(panel29, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            basicInformationPanel.add(panel2, cc.xywh(1, 5, 3, 1));
        }
        tabbedPane.addTab("Basic Description", basicInformationPanel);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPanel = new JPanel();
    panel4 = new JPanel();
    label_resourcesLevel = new JLabel();
    level = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils
            .getLookupListValues(ResourcesComponents.class, ResourcesComponents.PROPERTYNAME_LEVEL));
    internalOnly = new JCheckBox();
    restrictionsApply = new JCheckBox();
    panel13 = new JPanel();
    label_resourcesTitle2 = new JLabel();
    componentTitle = new JTextField();
    label_resourcesLevel2 = new JLabel();
    componentUniqueIdentifier = new JTextField();
    panel5 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    dateExpression = new JTextField();
    label_resourcesDateBegin = new JLabel();
    dateBegin = ATBasicComponentFactory.createUnboundIntegerField(false);
    label_resourcesDateEnd = new JLabel();
    dateEnd = ATBasicComponentFactory.createUnboundIntegerField(false);
    panel6 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    extent = ATBasicComponentFactory.createUnboundDoubleField();
    label_resourcesExtentNumber2 = new JLabel();
    extentType = ATBasicComponentFactory.createUnboundComboBox(
            LookupListUtils.getLookupListValues(Resources.class, Resources.PROPERTYNAME_EXTENT_TYPE));
    separator3 = new JSeparator();
    panel9 = new JPanel();
    label_resourcesExtentNumber4 = new JLabel();
    noteType1 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane1 = new JScrollPane();
    note1 = new JTextArea();
    separator4 = new JSeparator();
    panel10 = new JPanel();
    label_resourcesExtentNumber6 = new JLabel();
    noteType2 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane2 = new JScrollPane();
    note2 = new JTextArea();
    separator5 = new JSeparator();
    panel11 = new JPanel();
    label_resourcesExtentNumber7 = new JLabel();
    noteType3 = ATBasicComponentFactory.createUnboundComboBox(NoteEtcTypesUtils.getNotesOnlyTypesList(true));
    scrollPane3 = new JScrollPane();
    note3 = new JTextArea();
    separator6 = new JSeparator();
    panel12 = new JPanel();
    label_resourcesExtentNumber3 = new JLabel();
    instanceType = new JComboBox();
    panel7 = new JPanel();
    label_subjectTermType = new JLabel();
    container1Type = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER1_TYPE));
    label_subjectSource = new JLabel();
    container1Number = ATBasicComponentFactory.createUnboundDoubleField();
    label_subjectSource3 = new JLabel();
    container1AlphaNum = new JTextField();
    panel8 = new JPanel();
    label_subjectTermType2 = new JLabel();
    container2Type = ATBasicComponentFactory.createUnboundComboBox(LookupListUtils.getLookupListValues(
            ArchDescriptionAnalogInstances.class, ArchDescriptionAnalogInstances.PROPERTYNAME_CONTAINER2_TYPE));
    label_subjectSource2 = new JLabel();
    container2Number = ATBasicComponentFactory.createUnboundDoubleField();
    label_subjectSource4 = new JLabel();
    container2AlphaNum = new JTextField();
    panel14 = new JPanel();
    label_resourcesExtentNumber5 = new JLabel();
    barcode = new JTextField();
    panel1 = new JPanel();
    separator2 = new JSeparator();
    buttonPanel = new JPanel();
    cancelButton = new JButton();
    okButton = new JButton();
    okAndAnotherButton = new JButton();
    cancelButtonLabel = new JLabel();
    okButtonLabel = new JLabel();
    okAndAnotherButtonLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                //---- label_resourcesTitle2 ----
                label_resourcesTitle2.setText("Title");
                label_resourcesTitle2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesTitle2, Resources.class,
                        Resources.PROPERTYNAME_TITLE);
                panel13.add(label_resourcesTitle2, cc.xy(1, 1));
                panel13.add(componentTitle, cc.xy(3, 1));
            }
            contentPanel.add(panel13, cc.xywh(1, 3, 3, 1));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                //---- label_resourcesExtentNumber4 ----
                label_resourcesExtentNumber4.setText("Note 1");
                label_resourcesExtentNumber4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel9.add(label_resourcesExtentNumber4,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

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

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

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

                //---- label_resourcesExtentNumber6 ----
                label_resourcesExtentNumber6.setText("Note 2");
                label_resourcesExtentNumber6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel10.add(label_resourcesExtentNumber6,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

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

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

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

                //---- label_resourcesExtentNumber7 ----
                label_resourcesExtentNumber7.setText("Note 3");
                label_resourcesExtentNumber7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel11.add(label_resourcesExtentNumber7,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                //---- label_resourcesExtentNumber5 ----
                label_resourcesExtentNumber5.setText("Barcode");
                label_resourcesExtentNumber5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber5, ArchDescriptionAnalogInstances.class,
                        ArchDescriptionAnalogInstances.PROPERTYNAME_BARCODE);
                panel14.add(label_resourcesExtentNumber5,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                panel14.add(barcode, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            contentPanel.add(panel14, cc.xywh(1, 37, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

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

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

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

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

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

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

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

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

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

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    HeaderPanel = new JPanel();
    panel2 = new JPanel();
    mainHeaderLabel = new JLabel();
    panel3 = new JPanel();
    subHeaderLabel = new JLabel();
    contentPanel = new JPanel();
    temp = new JButton();
    panel1 = new JPanel();
    separator2 = new JSeparator();
    buttonPanel = new JPanel();
    autoSaveCheckBox = new JCheckBox();
    cancelButton = new JButton();
    okButton = new JButton();
    okAndAnotherButton = new JButton();
    cancelButtonLabel = new JLabel();
    okButtonLabel = new JLabel();
    okAndAnotherButtonLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

From source file:org.archiviststoolkit.swing.StandardEditor.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    mainPanel = new JPanel();
    HeaderPanel = new JPanel();
    mainHeaderPanel = new JPanel();
    mainHeaderLabel = new JLabel();
    subHeaderPanel = new JPanel();
    subHeaderLabel = new JLabel();
    recordPosition = new JLabel();
    contentPanel = new JPanel();
    button1 = new JButton();
    separator1 = new JSeparator();
    buttonPanel = new JPanel();
    firstButton = new JButton();
    previousButton = new JButton();
    nextButton = new JButton();
    lastButton = new JButton();
    printButton = new JButton();
    cancelButton = new JButton();
    okButton = new JButton();
    saveButton = new JButton();
    okAndAnotherButton = new JButton();
    firstLabel = new JLabel();
    previousLabel = new JLabel();
    nextLabel = new JLabel();
    lastLabel = new JLabel();
    printLabel = new JLabel();
    cancelButtonLabel = new JLabel();
    okButtonLabel = new JLabel();
    saveButtonLabel = new JLabel();
    okAndAnotherButtonLabel = new JLabel();
    separator2 = new JSeparator();
    gradientPanel2 = new JPanel();
    auditLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    setBackground(new Color(200, 205, 232));
    setModal(true);//from   w  ww . ja  v a2  s. com
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    addWindowListener(new WindowAdapter() {
        @Override
        public void windowClosing(WindowEvent e) {
            thisWindowClosing(e);
        }
    });
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default:grow", "top:default:grow"));

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

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

            //======== mainHeaderPanel ========
            {
                mainHeaderPanel.setBackground(new Color(80, 69, 57));
                mainHeaderPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                mainHeaderPanel.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.RELATED_GAP_ROWSPEC }));

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

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

                //---- subHeaderLabel ----
                subHeaderLabel.setText("Sub Header");
                subHeaderLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
                subHeaderLabel.setForeground(Color.white);
                subHeaderPanel.add(subHeaderLabel, cc.xy(2, 2));

                //---- recordPosition ----
                recordPosition.setText("record x of n");
                recordPosition.setForeground(Color.white);
                subHeaderPanel.add(recordPosition,
                        cc.xywh(4, 2, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            }
            HeaderPanel.add(subHeaderPanel, cc.xy(2, 1));
        }
        mainPanel.add(HeaderPanel, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== contentPanel ========
        {
            contentPanel.setBorder(Borders.DLU4_BORDER);
            contentPanel.setBackground(new Color(200, 205, 232));
            contentPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            contentPanel.setLayout(new FormLayout("center:default:grow", "top:default:grow"));

            //---- button1 ----
            button1.setText("text");
            contentPanel.add(button1, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
        }
        mainPanel.add(contentPanel, cc.xy(1, 3));

        //---- 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));
        mainPanel.add(separator1, cc.xy(1, 5));

        //======== buttonPanel ========
        {
            buttonPanel.setBorder(null);
            buttonPanel.setBackground(new Color(200, 205, 232));
            buttonPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            buttonPanel.setMinimumSize(new Dimension(380, 60));
            buttonPanel.setLayout(new FormLayout(
                    "default, default, default, default, default, left:10dlu, default, 10dlu, default, default, default, default",
                    "default, default"));

            //---- firstButton ----
            firstButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/firstRecord.jpg")));
            firstButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            firstButton.setOpaque(false);
            buttonPanel.add(firstButton, cc.xy(2, 1));

            //---- previousButton ----
            previousButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/prevRecord.jpg")));
            previousButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            previousButton.setOpaque(false);
            buttonPanel.add(previousButton, cc.xy(3, 1));

            //---- nextButton ----
            nextButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/nextRecord.jpg")));
            nextButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nextButton.setOpaque(false);
            buttonPanel.add(nextButton, cc.xy(4, 1));

            //---- lastButton ----
            lastButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/lastRecord.jpg")));
            lastButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            lastButton.setOpaque(false);
            buttonPanel.add(lastButton, cc.xy(5, 1));

            //---- printButton ----
            printButton.setIcon(
                    new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/print.jpg")));
            printButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            printButton.setOpaque(false);
            buttonPanel.add(printButton, cc.xy(7, 1));

            //---- cancelButton ----
            cancelButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/cancel.jpg")));
            cancelButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            cancelButton.setOpaque(false);
            buttonPanel.add(cancelButton, cc.xy(9, 1));

            //---- okButton ----
            okButton.setIcon(
                    new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/ok.jpg")));
            okButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            okButton.setOpaque(false);
            buttonPanel.add(okButton, cc.xy(10, 1));

            //---- saveButton ----
            saveButton.setIcon(
                    new ImageIcon(getClass().getResource("/org/archiviststoolkit/resources/images/save.jpg")));
            saveButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            saveButton.setOpaque(false);
            buttonPanel.add(saveButton, cc.xy(11, 1));

            //---- okAndAnotherButton ----
            okAndAnotherButton.setIcon(new ImageIcon(
                    getClass().getResource("/org/archiviststoolkit/resources/images/savePlus1.jpg")));
            okAndAnotherButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            okAndAnotherButton.setOpaque(false);
            buttonPanel.add(okAndAnotherButton, cc.xy(12, 1));

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

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

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

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

            //---- printLabel ----
            printLabel.setText("Reports");
            printLabel.setHorizontalAlignment(SwingConstants.CENTER);
            printLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            buttonPanel.add(printLabel, cc.xy(7, 2));

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

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

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

            //---- okAndAnotherButtonLabel ----
            okAndAnotherButtonLabel.setText("+ 1");
            okAndAnotherButtonLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            buttonPanel.add(okAndAnotherButtonLabel,
                    cc.xywh(12, 2, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        mainPanel.add(buttonPanel, cc.xywh(1, 7, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

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

        //======== gradientPanel2 ========
        {
            gradientPanel2.setBackground(new Color(200, 205, 232));
            gradientPanel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            gradientPanel2.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { new RowSpec("35px"), FormFactory.UNRELATED_GAP_ROWSPEC }));

            //---- auditLabel ----
            auditLabel.setText("created | modified");
            auditLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            gradientPanel2.add(auditLabel, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT,
                    CellConstraints.DEFAULT, new Insets(0, 10, 0, 0)));
        }
        mainPanel.add(gradientPanel2, cc.xy(1, 11));
    }
    contentPane.add(mainPanel, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
    final StandardEditor editor = this;
    WindowAdapter windowAdapter = new WindowAdapter() {
        public void windowClosing(final WindowEvent windowEvent) {
            if (saveButton.isVisible()) {
                if (readOnly) {
                    closeAndNoSave();
                } else if (showCloseConfirmDialog(0) == JOptionPane.YES_OPTION) {
                    if (!model.validateAndDisplayDialog(windowEvent)) { // didnot validate so don't save it
                        choice = -1;
                    } else {
                        setVisible(false);
                    }
                }
            } else if (JOptionPane.showConfirmDialog(editor,
                    "Clicking the close box is the same as clicking cancel. All changes will not be saved.\n"
                            + "Are you sure you wish to do this?",
                    "Confirm cancel", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                myIsDialogCancelled = true;

                setVisible(false);
            }
        }
    };

    addWindowListener(windowAdapter);
    this.getRootPane().setDefaultButton(this.getOkButton());
}

From source file:repast.simphony.visualization.gui.styleBuilder.EditedEdgeStyleDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    panel1 = new JPanel();
    shapePanel = new JPanel();
    shapeComboBox = new JComboBox();
    iconColorbutton = new JButton();
    panel3 = new JPanel();
    label1 = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    sizeComboBox = new JComboBox();
    sizeMinComboBox = new JComboBox();
    sizeMaxComboBox = new JComboBox();
    sizeScaleComboBox = new JComboBox();
    panel6 = new JPanel();
    label15 = new JLabel();
    label16 = new JLabel();
    label17 = new JLabel();
    label18 = new JLabel();
    label12 = new JLabel();
    redValueComboBox = new JComboBox();
    redMinComboBox = new JComboBox();
    redMaxComboBox = new JComboBox();
    redScaleComboBox = new JComboBox();
    label13 = new JLabel();
    greenValueComboBox = new JComboBox();
    greenMinComboBox = new JComboBox();
    greenMaxComboBox = new JComboBox();
    greenScaleComboBox = new JComboBox();
    label14 = new JLabel();
    blueValueComboBox = new JComboBox();
    blueMinComboBox = new JComboBox();
    blueMaxComboBox = new JComboBox();
    blueScaleComboBox = new JComboBox();
    previewPanel = new JPanel();
    CellConstraints cc = new CellConstraints();

    // ======== this ========
    setModal(true);/*from  w ww. jav  a2  s .com*/
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    // ======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

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

            // ---- okButton ----
            okButton.setText("OK");
            okButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButtonActionPerformed(e);
                }
            });
            buttonBar.add(okButton, cc.xy(2, 1));

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

        // ======== panel1 ========
        {
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { FormSpecs.GROWING_BUTTON_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC }));

            // ======== shapePanel ========
            {
                shapePanel.setBorder(new TitledBorder("Edge Style and Color"));
                shapePanel.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(66)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.GROWING_BUTTON_COLSPEC },
                        RowSpec.decodeSpecs("default")));

                // ---- shapeComboBox ----
                shapeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        shapeComboBoxActionPerformed(e);
                    }
                });
                shapePanel.add(shapeComboBox, cc.xy(1, 1));

                // ---- iconColorbutton ----
                iconColorbutton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        iconColorbuttonActionPerformed(e);
                    }
                });
                shapePanel.add(iconColorbutton, cc.xy(5, 1));
            }
            panel1.add(shapePanel, cc.xywh(1, 1, 11, 1));

            // ======== panel3 ========
            {
                panel3.setBorder(new TitledBorder("Edge Thickness"));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;66dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                // ---- label1 ----
                label1.setText("Value");
                panel3.add(label1, cc.xy(1, 1));

                // ---- label2 ----
                label2.setText("Minimum");
                panel3.add(label2, cc.xy(5, 1));

                // ---- label3 ----
                label3.setText("Maximum");
                panel3.add(label3, cc.xy(9, 1));

                // ---- label4 ----
                label4.setText("Scaling");
                panel3.add(label4, cc.xy(13, 1));

                // ---- sizeComboBox ----
                sizeComboBox.setEditable(true);
                sizeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeComboBox, cc.xy(1, 3));

                // ---- sizeMinComboBox ----
                sizeMinComboBox.setEditable(true);
                sizeMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMinComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMinComboBox, cc.xy(5, 3));

                // ---- sizeMaxComboBox ----
                sizeMaxComboBox.setEditable(true);
                sizeMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMaxComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMaxComboBox, cc.xy(9, 3));

                // ---- sizeScaleComboBox ----
                sizeScaleComboBox.setEditable(true);
                sizeScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeScaleComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeScaleComboBox, cc.xy(13, 3));
            }
            panel1.add(panel3, cc.xywh(1, 3, 11, 1));

            // ======== panel6 ========
            {
                panel6.setBorder(new TitledBorder("Variable Icon Color"));
                panel6.setLayout(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                // ---- label15 ----
                label15.setText("Value");
                panel6.add(label15, cc.xy(3, 1));

                // ---- label16 ----
                label16.setText("Minimum");
                panel6.add(label16, cc.xy(7, 1));

                // ---- label17 ----
                label17.setText("Maximum");
                panel6.add(label17, cc.xy(11, 1));

                // ---- label18 ----
                label18.setText("Scaling");
                panel6.add(label18, cc.xy(15, 1));

                // ---- label12 ----
                label12.setText("Red");
                panel6.add(label12, cc.xy(1, 3));

                // ---- redValueComboBox ----
                redValueComboBox.setEditable(true);
                redValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redValueComboBox, cc.xy(3, 3));

                // ---- redMinComboBox ----
                redMinComboBox.setEditable(true);
                redMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMinComboBox, cc.xy(7, 3));

                // ---- redMaxComboBox ----
                redMaxComboBox.setEditable(true);
                redMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMaxComboBox, cc.xy(11, 3));

                // ---- redScaleComboBox ----
                redScaleComboBox.setEditable(true);
                redScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redScaleComboBox, cc.xy(15, 3));

                // ---- label13 ----
                label13.setText("Green");
                panel6.add(label13, cc.xy(1, 5));

                // ---- greenValueComboBox ----
                greenValueComboBox.setEditable(true);
                greenValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenValueComboBox, cc.xy(3, 5));

                // ---- greenMinComboBox ----
                greenMinComboBox.setEditable(true);
                greenMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMinComboBox, cc.xy(7, 5));

                // ---- greenMaxComboBox ----
                greenMaxComboBox.setEditable(true);
                greenMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMaxComboBox, cc.xy(11, 5));

                // ---- greenScaleComboBox ----
                greenScaleComboBox.setEditable(true);
                greenScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenScaleComboBox, cc.xy(15, 5));

                // ---- label14 ----
                label14.setText("Blue");
                panel6.add(label14, cc.xy(1, 7));

                // ---- blueValueComboBox ----
                blueValueComboBox.setEditable(true);
                blueValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueValueComboBox, cc.xy(3, 7));

                // ---- blueMinComboBox ----
                blueMinComboBox.setEditable(true);
                blueMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMinComboBox, cc.xy(7, 7));

                // ---- blueMaxComboBox ----
                blueMaxComboBox.setEditable(true);
                blueMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMaxComboBox, cc.xy(11, 7));

                // ---- blueScaleComboBox ----
                blueScaleComboBox.setEditable(true);
                blueScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueScaleComboBox, cc.xy(15, 7));
            }
            panel1.add(panel6, cc.xy(1, 5));

            // ======== previewPanel ========
            {
                previewPanel.setBorder(new TitledBorder("Icon Preview"));
                previewPanel.setLayout(new FormLayout("default:grow", "default:grow"));
            }
            panel1.add(previewPanel, cc.xywh(1, 15, 11, 1));
        }
        dialogPane.add(panel1, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(615, 530);
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization //GEN-END:initComponents
}

From source file:repast.simphony.visualization.gui.styleBuilder.EditedStyleDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    panel1 = new JPanel();
    shapePanel = new JPanel();
    shapeComboBox = new JComboBox();
    iconColorbutton = new JButton();
    iconButton = new JButton();
    clearFileButton = new JButton();
    textureButton = new JButton();
    clearTextureButton = new JButton();
    previewPanel = new JPanel();
    panel3 = new JPanel();
    label1 = new JLabel();
    label2 = new JLabel();
    label3 = new JLabel();
    label4 = new JLabel();
    sizeComboBox = new JComboBox();
    sizeMinComboBox = new JComboBox();
    sizeMaxComboBox = new JComboBox();
    sizeScaleComboBox = new JComboBox();
    panel4 = new JPanel();
    label5 = new JLabel();
    label6 = new JLabel();
    label7 = new JLabel();
    label19 = new JLabel();
    labelComboBox = new JComboBox();
    labelPositionComboBox = new JComboBox();
    labelOffsetTextField = new JTextField();
    labelPrecisionComboBox = new JComboBox();
    panel2 = new JPanel();
    label8 = new JLabel();
    label9 = new JLabel();
    label10 = new JLabel();
    label11 = new JLabel();
    labelFontFamilyComboBox = new JComboBox();
    labelFontSizeComboBox = new JComboBox();
    labelFontStyleComboBox = new JComboBox();
    fontColorButton = new JButton();
    panel6 = new JPanel();
    label15 = new JLabel();
    label16 = new JLabel();
    label17 = new JLabel();
    label18 = new JLabel();
    label12 = new JLabel();
    redValueComboBox = new JComboBox();
    redMinComboBox = new JComboBox();
    redMaxComboBox = new JComboBox();
    redScaleComboBox = new JComboBox();
    label13 = new JLabel();
    greenValueComboBox = new JComboBox();
    greenMinComboBox = new JComboBox();
    greenMaxComboBox = new JComboBox();
    greenScaleComboBox = new JComboBox();
    label14 = new JLabel();
    blueValueComboBox = new JComboBox();
    blueMinComboBox = new JComboBox();
    blueMaxComboBox = new JComboBox();
    blueScaleComboBox = new JComboBox();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);/*  ww w  . j  a  va  2 s  . com*/
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

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

            //---- okButton ----
            okButton.setText("OK");
            okButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButtonActionPerformed(e);
                }
            });
            buttonBar.add(okButton, cc.xy(2, 1));

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

        //======== panel1 ========
        {
            panel1.setLayout(new FormLayout(
                    new ColumnSpec[] { ColumnSpec.decode("left:max(default;166dlu):grow"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(133)),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC }));

            //======== shapePanel ========
            {
                shapePanel.setBorder(new TitledBorder("Icon Shape and Color"));
                shapePanel.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(79)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(17)) }));

                //---- shapeComboBox ----
                shapeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        shapeComboBoxActionPerformed(e);
                    }
                });
                shapePanel.add(shapeComboBox, cc.xy(1, 1));

                //---- iconColorbutton ----
                iconColorbutton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        iconColorbuttonActionPerformed(e);
                    }
                });
                shapePanel.add(iconColorbutton, cc.xy(3, 1));

                //---- iconButton ----
                iconButton.setText("text");
                iconButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        iconButtonActionPerformed(e);
                    }
                });
                shapePanel.add(iconButton, cc.xy(1, 5));

                //---- clearFileButton ----
                clearFileButton.setText("text");
                clearFileButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearFileButtonActionPerformed(e);
                    }
                });
                shapePanel.add(clearFileButton, cc.xy(3, 5));

                //---- textureButton ----
                textureButton.setText("Select Texture");
                textureButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        textureButtonActionPerformed(e);
                    }
                });
                shapePanel.add(textureButton, cc.xy(1, 7));

                //---- clearTextureButton ----
                clearTextureButton.setText("Clear Texture");
                clearTextureButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        clearTextureButtonActionPerformed(e);
                    }
                });
                shapePanel.add(clearTextureButton, cc.xy(3, 7));
            }
            panel1.add(shapePanel, cc.xywh(1, 1, 2, 1));

            //======== previewPanel ========
            {
                previewPanel.setBorder(new TitledBorder("Icon Preview"));
                previewPanel.setLayout(new FormLayout("101dlu:grow", "top:57dlu:grow"));
            }
            panel1.add(previewPanel, cc.xywh(5, 1, 3, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

            //======== panel3 ========
            {
                panel3.setBorder(new TitledBorder("Icon Size"));
                panel3.setLayout(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;66dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label1 ----
                label1.setText("Value");
                panel3.add(label1, cc.xy(1, 1));

                //---- label2 ----
                label2.setText("Minimum");
                panel3.add(label2, cc.xy(5, 1));

                //---- label3 ----
                label3.setText("Maximum");
                panel3.add(label3, cc.xy(9, 1));

                //---- label4 ----
                label4.setText("Scaling");
                panel3.add(label4, cc.xy(13, 1));

                //---- sizeComboBox ----
                sizeComboBox.setEditable(true);
                sizeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeComboBox, cc.xy(1, 3));

                //---- sizeMinComboBox ----
                sizeMinComboBox.setEditable(true);
                sizeMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMinComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMinComboBox, cc.xy(5, 3));

                //---- sizeMaxComboBox ----
                sizeMaxComboBox.setEditable(true);
                sizeMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeMaxComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeMaxComboBox, cc.xy(9, 3));

                //---- sizeScaleComboBox ----
                sizeScaleComboBox.setEditable(true);
                sizeScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        sizeScaleComboBoxActionPerformed(e);
                    }
                });
                panel3.add(sizeScaleComboBox, cc.xy(13, 3));
            }
            panel1.add(panel3, cc.xywh(1, 3, 7, 1));

            //======== panel4 ========
            {
                panel4.setBorder(new TitledBorder("Icon Label"));
                panel4.setLayout(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;67dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(33)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label5 ----
                label5.setText("Value");
                panel4.add(label5, cc.xy(1, 1));

                //---- label6 ----
                label6.setText("Position");
                panel4.add(label6, cc.xy(5, 1));

                //---- label7 ----
                label7.setText("Offset");
                panel4.add(label7, cc.xy(9, 1));

                //---- label19 ----
                label19.setText("Precision");
                panel4.add(label19, cc.xy(13, 1));

                //---- labelComboBox ----
                labelComboBox.setEditable(true);
                labelComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelComboBox, cc.xy(1, 3));

                //---- labelPositionComboBox ----
                labelPositionComboBox.setEditable(true);
                labelPositionComboBox
                        .setModel(new DefaultComboBoxModel(new String[] { "bottom", "top", "left", "right" }));
                labelPositionComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelPositionComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelPositionComboBox, cc.xy(5, 3));

                //---- labelOffsetTextField ----
                labelOffsetTextField.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelOffsetTextFieldActionPerformed(e);
                    }
                });
                panel4.add(labelOffsetTextField, cc.xy(9, 3));

                //---- labelPrecisionComboBox ----
                labelPrecisionComboBox.setEditable(true);
                labelPrecisionComboBox.setModel(new DefaultComboBoxModel(
                        new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" }));
                labelPrecisionComboBox.setSelectedIndex(2);
                labelPrecisionComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelPrecisionComboBoxActionPerformed(e);
                    }
                });
                panel4.add(labelPrecisionComboBox, cc.xy(13, 3));
            }
            panel1.add(panel4, cc.xywh(1, 5, 7, 1));

            //======== panel2 ========
            {
                panel2.setBorder(new TitledBorder("Icon Label Font"));
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label8 ----
                label8.setText("Font");
                panel2.add(label8, cc.xy(1, 1));

                //---- label9 ----
                label9.setText("Font Size");
                panel2.add(label9, cc.xy(5, 1));

                //---- label10 ----
                label10.setText("Font Style");
                panel2.add(label10, cc.xy(9, 1));

                //---- label11 ----
                label11.setText("Font Color");
                panel2.add(label11, cc.xy(13, 1));

                //---- labelFontFamilyComboBox ----
                labelFontFamilyComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontFamilyComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontFamilyComboBox, cc.xy(1, 3));

                //---- labelFontSizeComboBox ----
                labelFontSizeComboBox.setModel(new DefaultComboBoxModel(new String[] { "8", "10", "11", "12",
                        "14", "16", "18", "20", "24", "30", "36", "40", "48", "60", "72 " }));
                labelFontSizeComboBox.setEditable(true);
                labelFontSizeComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontSizeComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontSizeComboBox, cc.xy(5, 3));

                //---- labelFontStyleComboBox ----
                labelFontStyleComboBox
                        .setModel(new DefaultComboBoxModel(new String[] { "Plain", "Bold", "Italic" }));
                labelFontStyleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        labelFontStyleComboBoxActionPerformed(e);
                    }
                });
                panel2.add(labelFontStyleComboBox, cc.xy(9, 3));

                //---- fontColorButton ----
                fontColorButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        fontColorButtonActionPerformed(e);
                    }
                });
                panel2.add(fontColorButton, cc.xy(13, 3));
            }
            panel1.add(panel2, cc.xywh(1, 7, 7, 1));

            //======== panel6 ========
            {
                panel6.setBorder(new TitledBorder("Variable Icon Color"));
                panel6.setLayout(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC },
                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                FormSpecs.DEFAULT_ROWSPEC }));

                //---- label15 ----
                label15.setText("Value");
                panel6.add(label15, cc.xy(3, 1));

                //---- label16 ----
                label16.setText("Minimum");
                panel6.add(label16, cc.xy(7, 1));

                //---- label17 ----
                label17.setText("Maximum");
                panel6.add(label17, cc.xy(11, 1));

                //---- label18 ----
                label18.setText("Scaling");
                panel6.add(label18, cc.xy(15, 1));

                //---- label12 ----
                label12.setText("Red");
                panel6.add(label12, cc.xy(1, 3));

                //---- redValueComboBox ----
                redValueComboBox.setEditable(true);
                redValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redValueComboBox, cc.xy(3, 3));

                //---- redMinComboBox ----
                redMinComboBox.setEditable(true);
                redMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMinComboBox, cc.xy(7, 3));

                //---- redMaxComboBox ----
                redMaxComboBox.setEditable(true);
                redMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redMaxComboBox, cc.xy(11, 3));

                //---- redScaleComboBox ----
                redScaleComboBox.setEditable(true);
                redScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        redScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(redScaleComboBox, cc.xy(15, 3));

                //---- label13 ----
                label13.setText("Green");
                panel6.add(label13, cc.xy(1, 5));

                //---- greenValueComboBox ----
                greenValueComboBox.setEditable(true);
                greenValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenValueComboBox, cc.xy(3, 5));

                //---- greenMinComboBox ----
                greenMinComboBox.setEditable(true);
                greenMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMinComboBox, cc.xy(7, 5));

                //---- greenMaxComboBox ----
                greenMaxComboBox.setEditable(true);
                greenMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenMaxComboBox, cc.xy(11, 5));

                //---- greenScaleComboBox ----
                greenScaleComboBox.setEditable(true);
                greenScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        greenScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(greenScaleComboBox, cc.xy(15, 5));

                //---- label14 ----
                label14.setText("Blue");
                panel6.add(label14, cc.xy(1, 7));

                //---- blueValueComboBox ----
                blueValueComboBox.setEditable(true);
                blueValueComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueValueComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueValueComboBox, cc.xy(3, 7));

                //---- blueMinComboBox ----
                blueMinComboBox.setEditable(true);
                blueMinComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMinComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMinComboBox, cc.xy(7, 7));

                //---- blueMaxComboBox ----
                blueMaxComboBox.setEditable(true);
                blueMaxComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueMaxComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueMaxComboBox, cc.xy(11, 7));

                //---- blueScaleComboBox ----
                blueScaleComboBox.setEditable(true);
                blueScaleComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        blueScaleComboBoxActionPerformed(e);
                    }
                });
                panel6.add(blueScaleComboBox, cc.xy(15, 7));
            }
            panel1.add(panel6, cc.xywh(1, 9, 7, 1));
        }
        dialogPane.add(panel1, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(520, 595);
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}