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

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

Introduction

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

Prototype

ComponentSize DEFAULT

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

Click Source Link

Document

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

Usage

From source file:anl.verdi.plot.gui.TitlePanel.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    lblText = new JLabel();
    separator1 = compFactory.createSeparator("");
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(Color.white);//from w  ww . j  a va  2 s  .c  o m
    // 2014
    ColumnSpec[] aColumnSpec = ColumnSpec.decodeSpecs("default:grow");
    RowSpec aRowSpec = new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW);
    setLayout(new FormLayout(aColumnSpec,
            new RowSpec[] { aRowSpec, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
    //      setLayout(new FormLayout(
    //            ColumnSpec.decodeSpecs("default:grow"),
    //            new RowSpec[] {
    //               new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
    //               FormFactory.LINE_GAP_ROWSPEC,
    //               FormFactory.DEFAULT_ROWSPEC
    //            }));

    //---- lblText ----
    lblText.setFont(new Font("Tahoma", Font.BOLD, 16));
    lblText.setHorizontalAlignment(SwingConstants.CENTER);
    add(lblText, cc.xy(1, 1));
    add(separator1, cc.xy(1, 3));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:anl.verdi.plot.gui.VerticalCrossDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    separator1 = compFactory.createSeparator("Select Cross Section");
    rbX = new JRadioButton();
    lblColumn = new JLabel();
    xSpinner = new JSpinner();
    rbY = new JRadioButton();
    lblRow = new JLabel();
    ySpinner = new JSpinner();
    separator2 = compFactory.createSeparator("");
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);// w  w w. j  av a  2 s.c o m
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

        //======== contentPanel ========
        {
            // 2014
            ColumnSpec[] aColumnSpec = ColumnSpec.decodeSpecs("max(default;50dlu)");
            ColumnSpec bColumnSpec = new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW);
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            aColumnSpec[0], FormFactory.LABEL_COMPONENT_GAP_COLSPEC, bColumnSpec },
                    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 }));
            //            contentPanel.setLayout(new FormLayout(
            //                  new ColumnSpec[] {
            //                     FormFactory.DEFAULT_COLSPEC,
            //                     FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
            //                     FormFactory.DEFAULT_COLSPEC,
            //                     FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
            //                     new ColumnSpec("max(default;50dlu)"),
            //                     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
            //                  }));
            contentPanel.add(separator1, cc.xywh(1, 1, 7, 1));

            //---- rbX ----
            rbX.setText("X-Axis Cross Section");
            contentPanel.add(rbX, cc.xywh(1, 3, 5, 1));

            //---- lblColumn ----
            lblColumn.setText("Column:");
            contentPanel.add(lblColumn, cc.xy(3, 5));
            contentPanel.add(xSpinner, cc.xy(5, 5));

            //---- rbY ----
            rbY.setText("Y-Axis Cross Section");
            contentPanel.add(rbY, cc.xywh(1, 7, 5, 1));

            //---- lblRow ----
            lblRow.setText("Row:");
            contentPanel.add(lblRow, cc.xy(3, 9));
            contentPanel.add(ySpinner, cc.xy(5, 9));
            contentPanel.add(separator2, cc.xywh(1, 11, 7, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- okButton ----
            okButton.setText("OK");
            buttonBar.add(okButton, cc.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            buttonBar.add(cancelButton, cc.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:au.gov.nla.atplugin.multiplecomponentidentifiers.panel.ResourceBasicInfoPanel.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel2 = new JPanel();
    label_resourcesTitle = new JLabel();
    scrollPane2 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    panel38 = new JPanel();
    panel35 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    resourcesDateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label1 = new JLabel();
    label_resourcesDateBegin = new JLabel();
    resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_resourcesBulkDateBegin = new JLabel();
    resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_BEGIN);
    label_resourcesBulkDateEnd = new JLabel();
    resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_END);
    panel3 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class);
    panel37 = new JPanel();
    panel20 = new JPanel();
    ExtentLabel = new JLabel();
    panel21 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            Resources.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE,
            Resources.class);
    label_resourcesExtentDescription = new JLabel();
    scrollPane422 = new JScrollPane();
    containerSummary = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false);
    label_resourcesLanguageNote = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    panel6 = new JPanel();
    label_agreementReceived2 = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    separator2 = new JSeparator();
    panel13 = new JPanel();
    panel12 = new JPanel();
    label_resourceIdentifier1 = new JLabel();
    resourceIdentifier1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_1));
    resourceIdentifier2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_2));
    resourceIdentifier3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_3));
    resourceIdentifier4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_4));
    panel19 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LEVEL,
            Resources.class);
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_OTHER_LEVEL), false);
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    identifiersTable = new DomainSortableTable();
    panel23 = new JPanel();
    addIdentifier = new JButton();
    removeIdentifier = new JButton();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel29 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class);
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    accessionsTable = new DomainSortableTable();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("left:max(default;300px):grow") },
            RowSpec.decodeSpecs("default")));

    //======== panel2 ========
    {/*from   w  ww .j ava  2s. c om*/
        panel2.setBackground(new Color(200, 205, 232));
        panel2.setLayout(new FormLayout("default:grow",
                "fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow, fill:default:grow"));

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

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

            //---- resourcesTitle ----
            resourcesTitle.setRows(4);
            resourcesTitle.setLineWrap(true);
            resourcesTitle.setWrapStyleWord(true);
            resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane2.setViewportView(resourcesTitle);
        }
        panel2.add(scrollPane2, cc.xy(1, 2));

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

            //---- insertInlineTag ----
            insertInlineTag.setOpaque(false);
            insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            insertInlineTag.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    insertInlineTagActionPerformed();
                }
            });
            tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1));
        }
        panel2.add(tagApplicatorPanel, cc.xy(1, 3));

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

            //======== panel35 ========
            {
                panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.setOpaque(false);
                panel35.setBorder(Borders.DLU2_BORDER);
                panel35.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- 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);
                panel35.add(label_resourcesDateExpression,
                        cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- resourcesDateExpression ----
                resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateExpression, new CellConstraints(4, 1, 5, 1, CellConstraints.DEFAULT,
                        CellConstraints.TOP, new Insets(0, 0, 0, 5)));

                //---- Date1Label1 ----
                Date1Label1.setText("Inclusive Dates");
                Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(Date1Label1, new CellConstraints(2, 3, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- 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);
                panel35.add(label_resourcesDateBegin, cc.xy(4, 3));

                //---- resourcesDateBegin ----
                resourcesDateBegin.setColumns(4);
                resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateBegin,
                        cc.xywh(6, 3, 1, 1, CellConstraints.FILL, 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);
                panel35.add(label_resourcesDateEnd, cc.xy(8, 3));

                //---- resourcesDateEnd ----
                resourcesDateEnd.setColumns(4);
                resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateEnd, new CellConstraints(10, 3, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- BulkDatesLabel ----
                BulkDatesLabel.setText("Bulk Dates");
                BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(BulkDatesLabel, new CellConstraints(2, 5, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label_resourcesBulkDateBegin ----
                label_resourcesBulkDateBegin.setText("Begin");
                label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_BEGIN);
                panel35.add(label_resourcesBulkDateBegin, cc.xy(4, 5));

                //---- resourcesBulkDateBegin ----
                resourcesBulkDateBegin.setColumns(4);
                resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateBegin,
                        cc.xywh(6, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- label_resourcesBulkDateEnd ----
                label_resourcesBulkDateEnd.setText("End");
                label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_END);
                panel35.add(label_resourcesBulkDateEnd, cc.xy(8, 5));

                //---- resourcesBulkDateEnd ----
                resourcesBulkDateEnd.setColumns(4);
                resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateEnd, new CellConstraints(10, 5, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
            }
            panel38.add(panel35, cc.xy(1, 1));
        }
        panel2.add(panel38, cc.xy(1, 4));

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

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

            //---- resourcesLanguageCode ----
            resourcesLanguageCode.setMaximumSize(new Dimension(50, 27));
            resourcesLanguageCode.setOpaque(false);
            resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel3.add(resourcesLanguageCode, cc.xywh(2, 1, 2, 1));
        }
        panel2.add(panel3, cc.xy(1, 5));

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

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

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

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

                    //---- 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);
                    panel21.add(label_resourcesExtentNumber,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

                    //---- extentType ----
                    extentType.setOpaque(false);
                    extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT,
                            CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));
                }
                panel20.add(panel21, cc.xy(2, 3));

                //---- label_resourcesExtentDescription ----
                label_resourcesExtentDescription.setText("Container Summary");
                label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class,
                        Resources.PROPERTYNAME_CONTAINER_SUMMARY);
                panel20.add(label_resourcesExtentDescription, cc.xy(2, 5));

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

                    //---- containerSummary ----
                    containerSummary.setRows(4);
                    containerSummary.setWrapStyleWord(true);
                    containerSummary.setLineWrap(true);
                    containerSummary.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane422.setViewportView(containerSummary);
                }
                panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT,
                        CellConstraints.FILL, new Insets(0, 15, 5, 5)));
            }
            panel37.add(panel20, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        panel2.add(panel37, cc.xy(1, 6));

        //---- label_resourcesLanguageNote ----
        label_resourcesLanguageNote.setText("Repository Processing Note");
        label_resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote, Resources.class,
                Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE);
        panel2.add(label_resourcesLanguageNote, cc.xy(1, 7));

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

            //---- resourcesLanguageNote ----
            resourcesLanguageNote.setRows(4);
            resourcesLanguageNote.setLineWrap(true);
            resourcesLanguageNote.setWrapStyleWord(true);
            resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane423.setViewportView(resourcesLanguageNote);
        }
        panel2.add(scrollPane423, cc.xy(1, 8));

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

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

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

            //---- changeRepositoryButton ----
            changeRepositoryButton.setText("Change");
            changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeRepositoryButton.setOpaque(false);
            changeRepositoryButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeRepositoryButtonActionPerformed();
                }
            });
            panel6.add(changeRepositoryButton,
                    cc.xywh(5, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        panel2.add(panel6, cc.xy(1, 9));
    }
    add(panel2, cc.xy(1, 1));

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

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

        //======== panel12 ========
        {
            panel12.setBackground(new Color(231, 188, 251));
            panel12.setOpaque(false);
            panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));
            ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

            //---- label_resourceIdentifier1 ----
            label_resourceIdentifier1.setText("Resource ID");
            label_resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourceIdentifier1, Resources.class,
                    Resources.PROPERTYNAME_RESOURCE_IDENTIFIER);
            panel12.add(label_resourceIdentifier1, cc.xy(1, 1));

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

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

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

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

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

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

            //---- resourcesLevel ----
            resourcesLevel.setOpaque(false);
            resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourcesLevel.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    resourcesLevelActionPerformed();
                }
            });
            panel19.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- label_otherLevel ----
            label_otherLevel.setText("Other Level");
            label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_otherLevel, Resources.class, Resources.PROPERTYNAME_OTHER_LEVEL);
            panel19.add(label_otherLevel, cc.xy(5, 1));

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

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

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

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

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

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

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

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

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

            //---- instancesTable ----
            instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
            instancesTable.setRowHeight(20);
            instancesTable.setFocusable(false);
            instancesTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    instancesTableMouseClicked(e);
                }
            });
            scrollPane6.setViewportView(instancesTable);
        }
        panel13.add(scrollPane6, cc.xywh(1, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

            //---- removeInstanceButton ----
            removeInstanceButton.setText("Remove Instance");
            removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeInstanceButton.setOpaque(false);
            removeInstanceButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeInstanceButtonActionPerformed();
                }
            });
            panel29.add(removeInstanceButton, cc.xy(3, 1));
        }
        panel13.add(panel29, cc.xywh(1, 15, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- restrictionsApply ----
        restrictionsApply.setText("Restrictions Apply");
        restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        restrictionsApply.setOpaque(false);
        restrictionsApply.setText(
                ATFieldInfo.getLabel(Resources.class, ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
        panel13.add(restrictionsApply, cc.xy(1, 17));

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

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

            //---- accessionsTable ----
            accessionsTable.setPreferredScrollableViewportSize(new Dimension(300, 100));
            accessionsTable.setFocusable(false);
            scrollPane4.setViewportView(accessionsTable);
        }
        panel13.add(scrollPane4, cc.xywh(1, 21, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel13, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:au.gov.nla.atplugin.multiplecomponentidentifiers.panel.ResourceComponentBasicInfoPanel.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel7 = new JPanel();
    label_resourcesTitle = new JLabel();
    scrollPane42 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    panel38 = new JPanel();
    panel35 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    resourcesDateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label1 = new JLabel();
    label_resourcesDateBegin = new JLabel();
    resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_resourcesBulkDateBegin = new JLabel();
    resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_BEGIN);
    label_resourcesBulkDateEnd = new JLabel();
    resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_END);
    panel9 = new JPanel();
    label_resourcesLanguageCode2 = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LANGUAGE_CODE, ResourcesComponents.class);
    panel5 = new JPanel();
    panel20 = new JPanel();
    ExtentLabel = new JLabel();
    panel21 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            Resources.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE,
            Resources.class);
    label_resourcesExtentDescription = new JLabel();
    scrollPane422 = new JScrollPane();
    containerSummary = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false);
    panel23 = new JPanel();
    label_resourcesLanguageNote2 = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory.createTextArea(
            detailsModel.getModel(ResourcesComponents.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    separator2 = new JSeparator();
    panel10 = new JPanel();
    panel3 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LEVEL, ResourcesComponents.class);
    label3 = new JLabel();
    resourcesDateBegin2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_PERSISTENT_ID));
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_OTHER_LEVEL), false);
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    identifiersTable = new DomainSortableTable();
    panel25 = new JPanel();
    addIdentifier = new JButton();
    removeIdentifier = new JButton();
    label1 = new JLabel();
    scrollPane4 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel24 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    panel4 = new JPanel();
    restrictionsApply2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_INTERNAL_ONLY, ResourcesComponents.class);
    resourcesRestrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, ResourcesComponents.class);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;350px):grow") },
            RowSpec.decodeSpecs("default")));

    //======== panel7 ========
    {/*from w  w w  .j ava 2s.c  o  m*/
        panel7.setOpaque(false);
        panel7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel7.setBorder(Borders.DLU2_BORDER);
        panel7.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC },
                new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

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

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

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

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

            //---- insertInlineTag ----
            insertInlineTag.setOpaque(false);
            insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            insertInlineTag.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    insertInlineTagActionPerformed();
                }
            });
            tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1));
        }
        panel7.add(tagApplicatorPanel, cc.xywh(1, 5, 2, 1));

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

            //======== panel35 ========
            {
                panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.setOpaque(false);
                panel35.setBorder(Borders.DLU2_BORDER);
                panel35.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- 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);
                panel35.add(label_resourcesDateExpression,
                        cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- resourcesDateExpression ----
                resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateExpression, new CellConstraints(4, 1, 5, 1, CellConstraints.DEFAULT,
                        CellConstraints.TOP, new Insets(0, 0, 0, 5)));

                //---- Date1Label1 ----
                Date1Label1.setText("Inclusive Dates");
                Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(Date1Label1, new CellConstraints(2, 3, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- 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);
                panel35.add(label_resourcesDateBegin, cc.xy(4, 3));

                //---- resourcesDateBegin ----
                resourcesDateBegin.setColumns(4);
                resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateBegin,
                        cc.xywh(6, 3, 1, 1, CellConstraints.FILL, 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);
                panel35.add(label_resourcesDateEnd, cc.xy(8, 3));

                //---- resourcesDateEnd ----
                resourcesDateEnd.setColumns(4);
                resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesDateEnd, new CellConstraints(10, 3, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- BulkDatesLabel ----
                BulkDatesLabel.setText("Bulk Dates");
                BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(BulkDatesLabel, new CellConstraints(2, 5, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                //---- label_resourcesBulkDateBegin ----
                label_resourcesBulkDateBegin.setText("Begin");
                label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_BEGIN);
                panel35.add(label_resourcesBulkDateBegin, cc.xy(4, 5));

                //---- resourcesBulkDateBegin ----
                resourcesBulkDateBegin.setColumns(4);
                resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateBegin,
                        cc.xywh(6, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                //---- label_resourcesBulkDateEnd ----
                label_resourcesBulkDateEnd.setText("End");
                label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class,
                        Resources.PROPERTYNAME_BULK_DATE_END);
                panel35.add(label_resourcesBulkDateEnd, cc.xy(8, 5));

                //---- resourcesBulkDateEnd ----
                resourcesBulkDateEnd.setColumns(4);
                resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel35.add(resourcesBulkDateEnd, new CellConstraints(10, 5, 1, 1, CellConstraints.FILL,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
            }
            panel38.add(panel35, cc.xy(1, 1));
        }
        panel7.add(panel38, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

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

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

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

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

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

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

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

                    //---- 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);
                    panel21.add(label_resourcesExtentNumber,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

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

                    //---- extentType ----
                    extentType.setOpaque(false);
                    extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT,
                            CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));
                }
                panel20.add(panel21, cc.xy(2, 3));

                //---- label_resourcesExtentDescription ----
                label_resourcesExtentDescription.setText("Container Summary");
                label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class,
                        Resources.PROPERTYNAME_CONTAINER_SUMMARY);
                panel20.add(label_resourcesExtentDescription, cc.xy(2, 5));

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

                    //---- containerSummary ----
                    containerSummary.setRows(4);
                    containerSummary.setWrapStyleWord(true);
                    containerSummary.setLineWrap(true);
                    containerSummary.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane422.setViewportView(containerSummary);
                }
                panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT,
                        CellConstraints.FILL, new Insets(0, 15, 5, 5)));
            }
            panel5.add(panel20, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        panel7.add(panel5, cc.xy(1, 11));

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

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

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

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

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

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

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

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

            //---- resourcesLevel ----
            resourcesLevel.setOpaque(false);
            resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourcesLevel.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    resourcesLevelActionPerformed();
                }
            });
            panel3.add(resourcesLevel, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

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

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

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

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

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

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

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

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

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

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

        //---- label1 ----
        label1.setText("Instances");
        label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        label1.setBackground(new Color(238, 238, 238));
        ATFieldInfo.assignLabelInfo(label1, ResourcesComponents.class,
                ResourcesComponents.PROPERTYNAME_INSTANCES);
        panel10.add(label1, cc.xywh(1, 9, 2, 1));

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

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

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

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

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

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

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

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

From source file:com.devdaily.heidi.ApplyLicenseDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    headerTitle = new JLabel();
    headerHelpText = new JLabel();
    fileTextfieldLabel = new JLabel();
    fileTextField = new JTextField();
    browseButton = new JButton();
    ///*from  w ww.j a va 2  s  .c o  m*/
    // AJA
    // 
    //needALicenseLabel = new JLabel();
    buttonBar = new JPanel();
    cancelButton = new JButton();
    applyLicenseButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    //
    // AJA
    //
    setTitle("Hyde Licensing");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

        //======== contentPanel ========
        {
            contentPanel.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,
                            FormFactory.PARAGRAPH_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.PARAGRAPH_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.PARAGRAPH_GAP_ROWSPEC }));

            //---- headerTitle ----
            headerTitle.setText("Licensing");
            headerTitle.setFont(new Font("Lucida Grande", Font.BOLD, 14));
            contentPanel.add(headerTitle, cc.xywh(1, 1, 5, 1));

            //---- headerHelpText ----
            headerHelpText.setText("Select the license file from your system, and click \"Apply License\".");
            contentPanel.add(headerHelpText, cc.xywh(1, 3, 5, 1));

            //---- fileTextfieldLabel ----
            fileTextfieldLabel.setText("Choose license file:");
            contentPanel.add(fileTextfieldLabel, cc.xywh(1, 7, 5, 1));
            contentPanel.add(fileTextField, cc.xywh(1, 9, 4, 1));

            //---- browseButton ----
            browseButton.setText("Browse...");
            contentPanel.add(browseButton, cc.xy(5, 9));

            //---- needALicenseLabel ----
            //
            // AJA
            // 
            //needALicenseLabel.setText("Need a license? Click here to get started.");
            needALicenseLabel.setForeground(Color.gray);
            contentPanel.add(needALicenseLabel, cc.xywh(1, 13, 5, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            buttonBar.add(cancelButton, cc.xy(4, 1));

            //---- applyLicenseButton ----
            applyLicenseButton.setText("Apply License");
            buttonBar.add(applyLicenseButton, cc.xy(6, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.devdaily.heidi.LicenseReminderDialog.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    htmlMessageScrollPane = new JScrollPane();
    htmlMessageArea = new JEditorPane();
    closeButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from w w w  .j  a va  2 s  . co  m
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel
                    .setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.GLUE_COLSPEC,
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.dluX(0), FormSpec.NO_GROW),
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW),
                                            new ColumnSpec(Sizes.dluX(0)), FormFactory.GLUE_COLSPEC },
                                    new RowSpec[] { FormFactory.LINE_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //======== htmlMessageScrollPane ========
            {

                //---- htmlMessageArea ----
                htmlMessageArea.setContentType("text/html");
                htmlMessageArea.setEditable(false);
                htmlMessageArea.setFont(new Font("Monaco", Font.PLAIN, 13));
                htmlMessageArea.setMargin(new Insets(4, 4, 4, 4));
                htmlMessageArea.setMinimumSize(new Dimension(360, 240));
                htmlMessageArea.setPreferredSize(new Dimension(360, 240));
                htmlMessageScrollPane.setViewportView(htmlMessageArea);
            }
            contentPanel.add(htmlMessageScrollPane, cc.xy(3, 3));

            //---- closeButton ----
            closeButton.setText("Close");
            contentPanel.add(closeButton, cc.xywh(3, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.devdaily.justwrite.view.ColorChooserDialog.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    fontColorSwatch = new JLabel();
    fontColorLabel = new JLabel();
    backgroundColorSwatch = new JLabel();
    backgroundColorLabel = new JLabel();
    textAreaScrollPane = new JScrollPane();
    sampleTextArea = new JTextPane();
    buttonBar = new JPanel();
    resetButton = new JButton();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Modify the Editor Colors");
    setResizable(false);/*  w  w w  .ja v  a  2  s  .  c  o  m*/
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setPreferredSize(new Dimension(388, 237));
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                    new RowSpec[] { FormFactory.UNRELATED_GAP_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.PARAGRAPH_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormFactory.PARAGRAPH_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //---- fontColorSwatch ----
            fontColorSwatch.setPreferredSize(new Dimension(60, 20));
            fontColorSwatch.setForeground(Color.green);
            fontColorSwatch.setBackground(Color.green);
            fontColorSwatch.setOpaque(true);
            fontColorSwatch.setBorder(new EtchedBorder());
            fontColorSwatch.setToolTipText("Click to change the font color");
            contentPanel.add(fontColorSwatch, cc.xy(3, 3));

            //---- fontColorLabel ----
            fontColorLabel.setText("Font Color");
            fontColorLabel.setToolTipText("Click to change the font color");
            contentPanel.add(fontColorLabel, cc.xy(5, 3));

            //---- backgroundColorSwatch ----
            backgroundColorSwatch.setPreferredSize(new Dimension(60, 20));
            backgroundColorSwatch.setBackground(Color.black);
            backgroundColorSwatch.setOpaque(true);
            backgroundColorSwatch.setBorder(new MatteBorder(1, 1, 1, 1, Color.black));
            backgroundColorSwatch.setToolTipText("Click to change the background color");
            contentPanel.add(backgroundColorSwatch, cc.xy(3, 5));

            //---- backgroundColorLabel ----
            backgroundColorLabel.setText("Background Color");
            backgroundColorLabel.setToolTipText("Click to change the background color");
            contentPanel.add(backgroundColorLabel, cc.xy(5, 5));

            //======== textAreaScrollPane ========
            {
                textAreaScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
                textAreaScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                textAreaScrollPane.setToolTipText("This is an example of your colors with the current font.");
                textAreaScrollPane.setPreferredSize(new Dimension(300, 60));

                //---- sampleTextArea ----
                sampleTextArea.setText("Four score and seven years ago");
                sampleTextArea.setEditable(false);
                sampleTextArea.setPreferredSize(new Dimension(200, 60));
                sampleTextArea.setToolTipText("Sample area to demonstrate your color choices");
                textAreaScrollPane.setViewportView(sampleTextArea);
            }
            contentPanel.add(textAreaScrollPane, cc.xywh(3, 7, 3, 2));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- resetButton ----
            resetButton.setText("Reset");
            resetButton.setToolTipText("Reset to the system default colors");
            buttonBar.add(resetButton, cc.xy(2, 1));

            //---- okButton ----
            okButton.setText("OK");
            okButton.setToolTipText("Accept your color changes");
            buttonBar.add(okButton, cc.xy(4, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            cancelButton.setToolTipText("Cancel your color changes");
            buttonBar.add(cancelButton, cc.xy(6, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.devdaily.justwrite.view.FullScreenEditorFrame.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    scrollPane = new JScrollPane();

    // NEW - this was a JTextPane
    DocumentLookAhead lookAhead = new DocumentLookAhead();
    editorPane = new LookAheadTextPane(lookAhead);

    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBackground(Color.black);/*from   w w  w.  j  a va  2  s.c o m*/
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.30000000000000004),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("660px"),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.30000000000000004) },
            new RowSpec[] {
                    // NEW
                    new RowSpec("96px"), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LINE_GAP_ROWSPEC, new RowSpec("60px") }));

    //======== scrollPane ========
    {
        scrollPane.setBackground(Color.black);
        scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
        scrollPane.setAutoscrolls(true);
        scrollPane.setBorder(null);
        scrollPane.setFocusable(false);
        scrollPane.setRequestFocusEnabled(false);
        scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        scrollPane.setViewportBorder(null);

        //---- editorPane ----
        editorPane.setBackground(new Color(12, 12, 12));
        editorPane.setForeground(Color.green);
        editorPane.setFont(new Font("Monaco", Font.PLAIN, 13));
        editorPane.setCaretColor(Color.green);
        editorPane.setSelectedTextColor(Color.green);
        editorPane.setBorder(null);
        editorPane.setSelectionColor(Color.darkGray);
        scrollPane.setViewportView(editorPane);
    }
    contentPane.add(scrollPane, cc.xy(3, 3));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.intellij.uiDesigner.radComponents.FormLayoutColumnProperties.java

License:Apache License

private Size getSelectedSize() {
    Size size;/*from  w w w.j  a v  a 2 s  .  c om*/
    if (myDefaultRadioButton.isSelected()) {
        size = Sizes.DEFAULT;
    } else if (myPreferredRadioButton.isSelected()) {
        size = Sizes.PREFERRED;
    } else if (myMinimumRadioButton.isSelected()) {
        size = Sizes.MINIMUM;
    } else {
        size = getConstantSize(myConstantSizeUnitsCombo, myConstantSizeSpinner);
    }

    if (myMinimumCheckBox.isSelected() || myMaximumCheckBox.isSelected()) {
        Size minSize = null;
        Size maxSize = null;
        if (myMinimumCheckBox.isSelected()) {
            minSize = getConstantSize(myMinSizeUnitsCombo, myMinSizeSpinner);
        }
        if (myMaximumCheckBox.isSelected()) {
            maxSize = getConstantSize(myMaxSizeUnitsCombo, myMaxSizeSpinner);
        }
        size = Sizes.bounded(size, minSize, maxSize);
    }
    return size;
}

From source file:com.spirit.cartera.gui.panel.JDApplyWalletTransaction.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    JDApplyWalletTransaction = new JPanel();
    JPApplyWalletTransaction = new JPanel();
    jfsPendingAccounts = compFactory.createSeparator("Cuentas pendientes");
    jpFilteredBy = new JPanel();
    lblToFilter = new JLabel();
    btnRemoveFilters = new JButton();
    btnFilterList = new JButton();
    lblTransaction = new JLabel();
    cmbTransaction = new JComboBox();
    lblInitialDate = new JLabel();
    txtInitialDate = new JFormattedTextField();
    lblFinalDate = new JLabel();
    txtFinalDate = new JFormattedTextField();
    lblOverdueDays = new JLabel();
    cmbOverdueDays = new JComboBox();
    lblValueGreaterThan = new JLabel();
    txtValueGreaterThan = new JFormattedTextField();
    lblBalanceGreaterThan = new JLabel();
    txtBalanceGreaterThan = new JFormattedTextField();
    spTblPendingAccounts = new JScrollPane();
    tblPendingAccounts = new JTable();
    jfsApplyingDocuments = compFactory.createSeparator("Documentos a aplicar");
    jpApplyingDocuments = new JPanel();
    spApplyingDocuments = new JScrollPane();
    tblApplyingDocuments = new JTable();
    btnAccept = new JButton();
    btnCancel = new JButton();
    btnUndo = new JButton();
    btnApply = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Cruce de cuentas");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== JDApplyWalletTransaction ========
    {//from   w  w  w.  j a v  a2s . com
        JDApplyWalletTransaction.setBorder(Borders.DIALOG_BORDER);
        JDApplyWalletTransaction.setLayout(new BorderLayout());

        //======== JPApplyWalletTransaction ========
        {
            JPApplyWalletTransaction.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, 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(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(75)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec("max(default;75dlu)"), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));
            JPApplyWalletTransaction.add(jfsPendingAccounts, cc.xywh(3, 1, 11, 1));

            //======== jpFilteredBy ========
            {
                jpFilteredBy.setBorder(new EtchedBorder());
                jpFilteredBy.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.DLUX3), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec("max(default;100dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec("max(default;75dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec("max(default;75dlu)"), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(Sizes.DLUX3) },
                        new RowSpec[] { new RowSpec(Sizes.DLUY3), 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(Sizes.DLUY3) }));

                //---- lblToFilter ----
                lblToFilter.setText("Filtrar:");
                lblToFilter.setFont(new Font("Tahoma", Font.BOLD, 11));
                lblToFilter.setForeground(UIManager.getColor("TitledBorder.titleColor"));
                jpFilteredBy.add(lblToFilter, cc.xy(3, 3));

                //---- btnRemoveFilters ----
                btnRemoveFilters.setText("Remover filtros");
                jpFilteredBy.add(btnRemoveFilters,
                        cc.xywh(9, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

                //---- btnFilterList ----
                btnFilterList.setText("Filtrar listado");
                jpFilteredBy.add(btnFilterList, cc.xy(13, 3));

                //---- lblTransaction ----
                lblTransaction.setText("Transacci\u00f3n:");
                lblTransaction.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblTransaction, cc.xy(3, 5));
                jpFilteredBy.add(cmbTransaction, cc.xy(5, 5));

                //---- lblInitialDate ----
                lblInitialDate.setText("Fecha inicial:");
                lblInitialDate.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblInitialDate, cc.xy(7, 5));

                //---- txtInitialDate ----
                txtInitialDate.setHorizontalAlignment(SwingConstants.CENTER);
                jpFilteredBy.add(txtInitialDate, cc.xy(9, 5));

                //---- lblFinalDate ----
                lblFinalDate.setText("Fecha final:");
                lblFinalDate.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblFinalDate, cc.xy(11, 5));

                //---- txtFinalDate ----
                txtFinalDate.setHorizontalAlignment(SwingConstants.CENTER);
                jpFilteredBy.add(txtFinalDate, cc.xy(13, 5));

                //---- lblOverdueDays ----
                lblOverdueDays.setText("D\u00edas vencidos:");
                lblOverdueDays.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblOverdueDays, cc.xy(3, 7));

                //---- cmbOverdueDays ----
                cmbOverdueDays
                        .setModel(new DefaultComboBoxModel(new String[] { "-", ">30", ">60", ">90", ">120" }));
                jpFilteredBy.add(cmbOverdueDays, cc.xy(5, 7));

                //---- lblValueGreaterThan ----
                lblValueGreaterThan.setText("Valor mayor a:");
                lblValueGreaterThan.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblValueGreaterThan, cc.xy(7, 7));

                //---- txtValueGreaterThan ----
                txtValueGreaterThan.setHorizontalAlignment(SwingConstants.RIGHT);
                jpFilteredBy.add(txtValueGreaterThan, cc.xy(9, 7));

                //---- lblBalanceGreaterThan ----
                lblBalanceGreaterThan.setText("Saldo mayor a:");
                lblBalanceGreaterThan.setFont(new Font("Tahoma", Font.BOLD, 11));
                jpFilteredBy.add(lblBalanceGreaterThan, cc.xy(11, 7));

                //---- txtBalanceGreaterThan ----
                txtBalanceGreaterThan.setHorizontalAlignment(SwingConstants.RIGHT);
                jpFilteredBy.add(txtBalanceGreaterThan, cc.xy(13, 7));
            }
            JPApplyWalletTransaction.add(jpFilteredBy, cc.xywh(3, 3, 11, 1));

            //======== spTblPendingAccounts ========
            {

                //---- tblPendingAccounts ----
                tblPendingAccounts.setModel(new DefaultTableModel(new Object[][] {}, new String[] { "Selec.",
                        "Transacci\u00f3n", "Fecha", "Dias vencidos", "Valor", "Saldo" }) {
                    Class[] columnTypes = new Class[] { Boolean.class, Object.class, Object.class, Object.class,
                            Object.class, Object.class };
                    boolean[] columnEditable = new boolean[] { true, false, false, false, false, false };

                    @Override
                    public Class<?> getColumnClass(int columnIndex) {
                        return columnTypes[columnIndex];
                    }

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                spTblPendingAccounts.setViewportView(tblPendingAccounts);
            }
            JPApplyWalletTransaction.add(spTblPendingAccounts, cc.xywh(3, 5, 11, 1));
            JPApplyWalletTransaction.add(jfsApplyingDocuments, cc.xywh(3, 7, 11, 1));

            //======== jpApplyingDocuments ========
            {
                jpApplyingDocuments.setLayout(new FormLayout(
                        new ColumnSpec[] {
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)) },
                        new RowSpec[] { new RowSpec("max(default;75dlu)"), FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.dluY(10)) }));

                //======== spApplyingDocuments ========
                {

                    //---- tblApplyingDocuments ----
                    tblApplyingDocuments.setModel(new DefaultTableModel(new Object[][] {}, new String[] {
                            "Transacci\u00f3n", "Saldo", "Valor a aplicar", "Fecha de aplicaci\u00f3n" }) {
                        Class[] columnTypes = new Class[] { Object.class, Double.class, Double.class,
                                Object.class };
                        boolean[] columnEditable = new boolean[] { false, false, true, true };

                        @Override
                        public Class<?> getColumnClass(int columnIndex) {
                            return columnTypes[columnIndex];
                        }

                        @Override
                        public boolean isCellEditable(int rowIndex, int columnIndex) {
                            return columnEditable[columnIndex];
                        }
                    });
                    spApplyingDocuments.setViewportView(tblApplyingDocuments);
                }
                jpApplyingDocuments.add(spApplyingDocuments, cc.xywh(1, 1, 5, 1));
            }
            JPApplyWalletTransaction.add(jpApplyingDocuments, cc.xywh(3, 9, 11, 3));

            //---- btnAccept ----
            btnAccept.setText("Aceptar");
            JPApplyWalletTransaction.add(btnAccept, cc.xy(7, 13));

            //---- btnCancel ----
            btnCancel.setText("Cancelar");
            JPApplyWalletTransaction.add(btnCancel, cc.xy(9, 13));

            //---- btnUndo ----
            btnUndo.setText("Deshacer");
            JPApplyWalletTransaction.add(btnUndo, cc.xy(11, 13));

            //---- btnApply ----
            btnApply.setText("Aplicar");
            JPApplyWalletTransaction.add(btnApply, cc.xy(13, 13));
        }
        JDApplyWalletTransaction.add(JPApplyWalletTransaction, BorderLayout.CENTER);
    }
    contentPane.add(JDApplyWalletTransaction, BorderLayout.NORTH);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}