Example usage for com.jgoodies.forms.layout FormSpecs GLUE_COLSPEC

List of usage examples for com.jgoodies.forms.layout FormSpecs GLUE_COLSPEC

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout FormSpecs GLUE_COLSPEC.

Prototype

ColumnSpec GLUE_COLSPEC

To view the source code for com.jgoodies.forms.layout FormSpecs GLUE_COLSPEC.

Click Source Link

Document

An unmodifiable ColumnSpec that has an initial width of 0 pixels and that grows.

Usage

From source file:UpdateDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    ResourceBundle bundle = ResourceBundle.getBundle("UpdateDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JScrollPane scrollPane1 = new JScrollPane();
    table = new JXTable();
    JPanel topPanel = new JPanel();
    JLabel labelUpdateServer = new JLabel();
    server = new JLabel();
    labelUpdatesCount = new JLabel();
    JXButtonPanel buttonBar = new JXButtonPanel();
    progressBar = new JProgressBar();
    btnOK = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {// ww  w. j a v a  2s. co m
        dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12));
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new BorderLayout(4, 4));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(table);
            }
            contentPanel.add(scrollPane1, BorderLayout.CENTER);

            //======== topPanel ========
            {

                //---- labelUpdateServer ----
                labelUpdateServer.setText(bundle.getString("labelUpdateServer.text"));

                //---- server ----
                server.setText(bundle.getString("server.text"));

                //---- labelUpdatesCount ----
                labelUpdatesCount.setText(bundle.getString("labelUpdatesCount.text"));

                PanelBuilder topPanelBuilder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("default")), topPanel);

                topPanelBuilder.add(labelUpdateServer, cc.xy(1, 1));
                topPanelBuilder.add(server, cc.xy(3, 1));
                topPanelBuilder.add(labelUpdatesCount, cc.xy(7, 1));
            }
            contentPanel.add(topPanel, BorderLayout.NORTH);
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_PAD);
            buttonBar.setCyclic(true);

            //---- btnOK ----
            btnOK.setText(bundle.getString("btnOK.text"));

            //---- btnCancel ----
            btnCancel.setText(bundle.getString("btnCancel.text"));

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.GLUE_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"),
                            FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC },
                    RowSpec.decodeSpecs("pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 4, 6 } });

            buttonBarBuilder.add(progressBar, cc.xy(2, 1));
            buttonBarBuilder.add(btnOK, cc.xy(4, 1));
            buttonBarBuilder.add(btnCancel, 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:ConnectDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    ResourceBundle bundle = ResourceBundle.getBundle("ConnectDialog");
    dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelHostName = new JLabel();
    fieldHostName = new JTextField();
    JLabel labelPortNumber = new JLabel();
    fieldPort = new JTextField();
    checkAuthentification = new JCheckBox();
    labelLoginName = new JLabel();
    fieldUserName = new JTextField();
    labelPassword = new JLabel();
    fieldPassword = new JPasswordField();
    checkStorePassword = new JCheckBox();
    labelWarning = new JLabel();
    JXButtonPanel buttonBar = new JXButtonPanel();
    btnOk = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("this.title"));
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//ww  w  .  j av a2s.c  o  m
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC }));

            //---- labelHostName ----
            labelHostName.setText(bundle.getString("labelHostName.text"));
            labelHostName.setLabelFor(fieldHostName);
            contentPanel.add(labelHostName, cc.xy(1, 1));

            //---- fieldHostName ----
            fieldHostName.setColumns(8);
            contentPanel.add(fieldHostName, cc.xy(3, 1));

            //---- labelPortNumber ----
            labelPortNumber.setText(bundle.getString("labelPortNumber.text"));
            labelPortNumber.setLabelFor(fieldPort);
            contentPanel.add(labelPortNumber, cc.xy(5, 1));

            //---- fieldPort ----
            fieldPort.setColumns(6);
            contentPanel.add(fieldPort, cc.xy(7, 1));

            //---- checkAuthentification ----
            checkAuthentification.setText(bundle.getString("checkAuthentification.text"));
            contentPanel.add(checkAuthentification, new CellConstraints(1, 3, 3, 1, CellConstraints.DEFAULT,
                    CellConstraints.DEFAULT, new Insets(0, 7, 0, 0)));

            //---- labelLoginName ----
            labelLoginName.setText(bundle.getString("labelLoginName.text"));
            labelLoginName.setLabelFor(fieldUserName);
            contentPanel.add(labelLoginName, cc.xy(1, 5));
            contentPanel.add(fieldUserName, cc.xy(3, 5));

            //---- labelPassword ----
            labelPassword.setText(bundle.getString("labelPassword.text"));
            labelPassword.setLabelFor(fieldPassword);
            contentPanel.add(labelPassword, cc.xy(1, 7));
            contentPanel.add(fieldPassword, cc.xy(3, 7));

            //---- checkStorePassword ----
            checkStorePassword.setText(bundle.getString("checkStorePassword.text"));
            contentPanel.add(checkStorePassword, cc.xywh(5, 7, 3, 1));

            //---- labelWarning ----
            labelWarning.setText(bundle.getString("labelWarning.text"));
            labelWarning.setForeground(Color.red);
            contentPanel.add(labelWarning, cc.xywh(1, 9, 7, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- btnOk ----
            btnOk.setText(bundle.getString("btnOk.text"));
            buttonBar.add(btnOk, cc.xy(2, 1));

            //---- btnCancel ----
            btnCancel.setText(bundle.getString("btnCancel.text"));
            buttonBar.add(btnCancel, 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:UserPreferencesDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    ResourceBundle bundle = ResourceBundle.getBundle("UserPreferencesDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    toolbar = new JButtonBar();
    panelCard = new JPanel();
    JPanel panelGeneral = new JPanel();
    JPanel panelGeneralSettings = new JPanel();
    checkShowIconInSystemTray = new JCheckBox();
    JPanel panelAlarm = new JPanel();
    JPanel panelWhenAlarmGoesOff = new JPanel();
    JPanel panelAlarmDefaults = new JPanel();
    JPanel panelPlugins = new JPanel();
    JTabbedPane pluginTabbedPane = new JTabbedPane();
    JPanel pluginPanelSettings = new JPanel();
    JScrollPane scrollPane1 = new JScrollPane();
    pluginTable = new JXTable();
    JXButtonPanel pluginsButtonPanel = new JXButtonPanel();
    JLabel labelPluginInfo = new JLabel();
    popmenuButton = ComponentFactory.getPopdownButton();
    btnPluginOptions = new JButton();
    JPanel pluginPanelUpdates = new JPanel();
    check4PluginUpdatesAutomatically = new JCheckBox();
    JLabel labelAfterDetectUpdate = new JLabel();
    comboHowToUpdate = new JComboBox();
    checkDownloadNotExistingPlugins = new JCheckBox();
    JLabel labelCheckForUpdateEvery = new JLabel();
    spinnerUpdateHour = new JSpinner();
    JLabel labelHours = new JLabel();
    JLabel labelUpdateFromServer = new JLabel();
    comboPluginServers = new JComboBox();
    btnResetDefaultPluginServer = new JButton();
    JLabel labelManualCheck = new JLabel();
    buttonBar = new JXButtonPanel();
    btnOK = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("this.title"));
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {/*from   w w w.  j  a  v  a 2  s.c  o  m*/
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new BorderLayout());

            //======== toolbar ========
            {
                toolbar.setBorder(LineBorder.createBlackLineBorder());
                toolbar.setLayout(null);
            }
            contentPanel.add(toolbar, BorderLayout.NORTH);

            //======== panelCard ========
            {
                panelCard.setLayout(new CardLayout());

                //======== panelGeneral ========
                {
                    panelGeneral.setBorder(Borders.TABBED_DIALOG);

                    //======== panelGeneralSettings ========
                    {
                        panelGeneralSettings.setBorder(
                                new TitledBorder(null, bundle.getString("panelGeneralSettings.border"),
                                        TitledBorder.LEADING, TitledBorder.TOP));

                        //---- checkShowIconInSystemTray ----
                        checkShowIconInSystemTray.setText(bundle.getString("checkShowIconInSystemTray.text"));

                        PanelBuilder panelGeneralSettingsBuilder = new PanelBuilder(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec(ColumnSpec.LEFT, Sizes.dluX(0), FormSpec.NO_GROW),
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")), panelGeneralSettings);

                        panelGeneralSettingsBuilder.add(checkShowIconInSystemTray, cc.xy(3, 1));
                    }

                    PanelBuilder panelGeneralBuilder = new PanelBuilder(
                            new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW),
                                            FormSpecs.RELATED_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.NO_GROW) }),
                            panelGeneral);

                    panelGeneralBuilder.add(panelGeneralSettings, cc.xy(1, 1));
                }
                panelCard.add(panelGeneral, "CARD1");

                //======== panelAlarm ========
                {
                    panelAlarm.setBorder(Borders.TABBED_DIALOG);

                    //======== panelWhenAlarmGoesOff ========
                    {
                        panelWhenAlarmGoesOff.setBorder(
                                new TitledBorder(null, bundle.getString("panelWhenAlarmGoesOff.border"),
                                        TitledBorder.LEADING, TitledBorder.TOP));

                        PanelBuilder panelWhenAlarmGoesOffBuilder = new PanelBuilder(
                                new FormLayout(new ColumnSpec[] {
                                        new ColumnSpec(ColumnSpec.LEFT, Sizes.dluX(0), FormSpec.NO_GROW),
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                                        new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC,
                                                FormSpecs.NARROW_LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                                                FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                                                FormSpecs.DEFAULT_ROWSPEC }),
                                panelWhenAlarmGoesOff);
                        ((FormLayout) panelWhenAlarmGoesOff.getLayout())
                                .setColumnGroups(new int[][] { { 9, 11 } });

                    }

                    //======== panelAlarmDefaults ========
                    {
                        panelAlarmDefaults
                                .setBorder(new TitledBorder(null, bundle.getString("panelAlarmDefaults.border"),
                                        TitledBorder.LEADING, TitledBorder.TOP));

                        PanelBuilder panelAlarmDefaultsBuilder = new PanelBuilder(new FormLayout(
                                new ColumnSpec[] {
                                        new ColumnSpec(ColumnSpec.LEFT, Sizes.dluX(0), FormSpec.NO_GROW),
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                        FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                                new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.NARROW_LINE_GAP_ROWSPEC,
                                        FormSpecs.DEFAULT_ROWSPEC, FormSpecs.NARROW_LINE_GAP_ROWSPEC,
                                        FormSpecs.DEFAULT_ROWSPEC, FormSpecs.NARROW_LINE_GAP_ROWSPEC,
                                        FormSpecs.DEFAULT_ROWSPEC }),
                                panelAlarmDefaults);

                    }

                    PanelBuilder panelAlarmBuilder = new PanelBuilder(new FormLayout(
                            ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC,
                                    FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                            panelAlarm);

                    panelAlarmBuilder.add(panelWhenAlarmGoesOff, cc.xy(1, 1));
                    panelAlarmBuilder.add(panelAlarmDefaults, cc.xy(1, 3));
                }
                panelCard.add(panelAlarm, "CARD2");

                //======== panelPlugins ========
                {
                    panelPlugins.setBorder(Borders.TABBED_DIALOG);

                    //======== pluginTabbedPane ========
                    {

                        //======== pluginPanelSettings ========
                        {
                            pluginPanelSettings.setBorder(
                                    new CompoundBorder(new EmptyBorder(4, 4, 4, 4), new EtchedBorder()));
                            pluginPanelSettings.setLayout(new BorderLayout());

                            //======== scrollPane1 ========
                            {
                                scrollPane1.setViewportView(pluginTable);
                            }
                            pluginPanelSettings.add(scrollPane1, BorderLayout.CENTER);

                            //======== pluginsButtonPanel ========
                            {
                                pluginsButtonPanel.setBorder(new EmptyBorder(4, 4, 4, 4));

                                //---- labelPluginInfo ----
                                labelPluginInfo.setText(bundle.getString("labelPluginInfo.text"));

                                //---- popmenuButton ----
                                popmenuButton.setText(bundle.getString("popmenuButton.text"));

                                //---- btnPluginOptions ----
                                btnPluginOptions.setText(bundle.getString("btnPluginOptions.text"));

                                PanelBuilder pluginsButtonPanelBuilder = new PanelBuilder(new FormLayout(
                                        new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                        FormSpec.DEFAULT_GROW),
                                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.UNRELATED_GAP_COLSPEC,
                                                FormSpecs.DEFAULT_COLSPEC,
                                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                                FormSpecs.UNRELATED_GAP_COLSPEC },
                                        RowSpec.decodeSpecs("default")), pluginsButtonPanel);

                                pluginsButtonPanelBuilder.add(labelPluginInfo, cc.xy(3, 1));
                                pluginsButtonPanelBuilder.add(popmenuButton, cc.xy(5, 1));
                                pluginsButtonPanelBuilder.add(btnPluginOptions, cc.xy(7, 1));
                            }
                            pluginPanelSettings.add(pluginsButtonPanel, BorderLayout.SOUTH);
                        }
                        pluginTabbedPane.addTab(bundle.getString("pluginPanelSettings.tab.title"),
                                pluginPanelSettings);

                        //======== pluginPanelUpdates ========
                        {
                            pluginPanelUpdates.setBorder(new CompoundBorder(new EmptyBorder(4, 4, 4, 4),
                                    new TitledBorder(bundle.getString("pluginPanelUpdates.border"))));

                            //---- check4PluginUpdatesAutomatically ----
                            check4PluginUpdatesAutomatically
                                    .setText(bundle.getString("check4PluginUpdatesAutomatically.text"));

                            //---- labelAfterDetectUpdate ----
                            labelAfterDetectUpdate.setText(bundle.getString("labelAfterDetectUpdate.text"));

                            //---- checkDownloadNotExistingPlugins ----
                            checkDownloadNotExistingPlugins
                                    .setText(bundle.getString("checkDownloadNotExistingPlugins.text"));

                            //---- labelCheckForUpdateEvery ----
                            labelCheckForUpdateEvery.setText(bundle.getString("labelCheckForUpdateEvery.text"));

                            //---- labelHours ----
                            labelHours.setText(bundle.getString("labelHours.text"));

                            //---- labelUpdateFromServer ----
                            labelUpdateFromServer.setText(bundle.getString("labelUpdateFromServer.text"));
                            labelUpdateFromServer.setLabelFor(comboPluginServers);

                            //---- comboPluginServers ----
                            comboPluginServers.setEditable(true);

                            //---- btnResetDefaultPluginServer ----
                            btnResetDefaultPluginServer
                                    .setText(bundle.getString("btnResetDefaultPluginServer.text"));

                            //---- labelManualCheck ----
                            labelManualCheck.setText(bundle.getString("labelManualCheck.text"));

                            PanelBuilder pluginPanelUpdatesBuilder = new PanelBuilder(new FormLayout(
                                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC,
                                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(Sizes
                                                    .bounded(Sizes.MINIMUM, Sizes.dluX(30), Sizes.dluX(30))),
                                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL,
                                                    Sizes.bounded(Sizes.DEFAULT, Sizes.dluX(50),
                                                            Sizes.dluX(75)),
                                                    FormSpec.DEFAULT_GROW),
                                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                            FormSpecs.UNRELATED_GAP_COLSPEC },
                                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.UNRELATED_GAP_ROWSPEC,
                                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                            FormSpecs.UNRELATED_GAP_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                                            FormSpecs.DEFAULT_ROWSPEC }),
                                    pluginPanelUpdates);

                            pluginPanelUpdatesBuilder.add(check4PluginUpdatesAutomatically,
                                    cc.xywh(1, 1, 5, 1));
                            pluginPanelUpdatesBuilder.add(labelAfterDetectUpdate,
                                    cc.xywh(1, 3, 3, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                            pluginPanelUpdatesBuilder.add(comboHowToUpdate,
                                    cc.xywh(5, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                            pluginPanelUpdatesBuilder.add(checkDownloadNotExistingPlugins, cc.xywh(1, 5, 5, 1));
                            pluginPanelUpdatesBuilder.add(labelCheckForUpdateEvery,
                                    cc.xywh(1, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                            pluginPanelUpdatesBuilder.add(spinnerUpdateHour, cc.xy(3, 7));
                            pluginPanelUpdatesBuilder.add(labelHours, cc.xy(5, 7));
                            pluginPanelUpdatesBuilder.add(labelUpdateFromServer,
                                    cc.xywh(1, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
                            pluginPanelUpdatesBuilder.add(comboPluginServers, cc.xywh(3, 9, 3, 1));
                            pluginPanelUpdatesBuilder.add(btnResetDefaultPluginServer, cc.xy(7, 9));
                            pluginPanelUpdatesBuilder.add(labelManualCheck, cc.xywh(1, 13, 7, 1));
                        }
                        pluginTabbedPane.addTab(bundle.getString("pluginPanelUpdates.tab.title"),
                                pluginPanelUpdates);

                    }

                    PanelBuilder panelPluginsBuilder = new PanelBuilder(
                            new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                    new RowSpec[] {
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormSpecs.RELATED_GAP_ROWSPEC, RowSpec.decode("5px") }),
                            panelPlugins);

                    panelPluginsBuilder.add(pluginTabbedPane, cc.xy(1, 1));
                }
                panelCard.add(panelPlugins, "CARD6");
            }
            contentPanel.add(panelCard, BorderLayout.CENTER);
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_PAD);
            buttonBar.setCyclic(true);

            //---- btnOK ----
            btnOK.setText(bundle.getString("btnOK.text"));

            //---- btnCancel ----
            btnCancel.setText(bundle.getString("btnCancel.text"));

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.GLUE_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"),
                            FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC },
                    RowSpec.decodeSpecs("pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 2, 4 } });

            buttonBarBuilder.add(btnOK, cc.xy(2, 1));
            buttonBarBuilder.add(btnCancel, 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:cz.vity.freerapid.gui.dialogs.UpdateDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    //ResourceBundle bundle = ResourceBundle.getBundle("UpdateDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JScrollPane scrollPane1 = new JScrollPane();
    table = new JXTable();
    JPanel topPanel = new JPanel();
    JLabel labelUpdateServer = new JLabel();
    labelServer = new JLabel();
    labelUpdatesCount = new JLabel();
    popmenuButton = ComponentFactory.getPopdownButton();
    popmenuButton.setName("popmenuButton");

    JXButtonPanel buttonBar = new JXButtonPanel();
    btnOK = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {//from w w  w  .  j a v  a2s.  c  om
        dialogPane.setBorder(new EmptyBorder(12, 12, 12, 12));
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new BorderLayout(4, 4));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(table);
            }
            contentPanel.add(scrollPane1, BorderLayout.CENTER);

            //======== topPanel ========
            {

                //---- labelUpdateServer ----
                labelUpdateServer.setName("labelUpdateServer");

                //---- server ----
                labelServer.setName("server");

                //---- labelUpdatesCount ----
                labelUpdatesCount.setName("labelUpdatesCount");

                PanelBuilder topPanelBuilder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("default")), topPanel);

                topPanelBuilder.add(labelUpdateServer, cc.xy(1, 1));
                topPanelBuilder.add(labelServer, cc.xy(3, 1));
                topPanelBuilder.add(labelUpdatesCount, cc.xy(7, 1));
            }
            contentPanel.add(topPanel, BorderLayout.NORTH);
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_PAD);
            buttonBar.setCyclic(true);

            //---- btnOK ----
            btnOK.setName("btnOK");

            //---- btnCancel ----
            btnCancel.setName("btnCancel");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.GLUE_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"),
                            FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC },
                    RowSpec.decodeSpecs("pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 2, 4, 6 } });

            buttonBarBuilder.add(popmenuButton, cc.xy(2, 1));
            buttonBarBuilder.add(btnOK, cc.xy(4, 1));
            buttonBarBuilder.add(btnCancel, cc.xy(6, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
}

From source file:de.bund.bfr.knime.openkrise.db.gui.InfoBox.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license
    dialogPane = new JPanel();
    contentPane = new JPanel();
    scroller = new JScrollPane();
    infoTextArea = new JTextArea();
    buttonBar = new JPanel();
    okButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {/*from ww  w .j  a v a  2s.c o  m*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPane ========
        {
            contentPane.setLayout(new FormLayout("default:grow", "fill:default:grow"));

            //======== scroller ========
            {

                //---- infoTextArea ----
                infoTextArea.setText(inhalt);
                scroller.setViewportView(infoTextArea);
            }
            contentPane.add(scroller, cc.xy(1, 1));
        }
        dialogPane.add(contentPane, BorderLayout.CENTER);

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

            //---- okButton ----
            okButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    okButton_actionPerformed(e);
                }
            });
            okButton.setText("OK");
            buttonBar.add(okButton, cc.xy(2, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane2.add(dialogPane, BorderLayout.CENTER);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:repast.simphony.freezedry.datasource.JDBCConnectDialog.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    dialogPane = new JPanel();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    dBCConnectPanel1 = new JDBCConnectPanel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle("Connection Settings");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.X_AXIS));

    //======== dialogPane ========
    {/*w  w w  . j  a v  a2 s  . c  om*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

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

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

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

    getRootPane().setDefaultButton(okButton);

    ActionListener actionListener = new ActionListener() {
        public void actionPerformed(ActionEvent actionEvent) {
            cancelButton.doClick();
        }
    };

    KeyStroke escape = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
    getRootPane().registerKeyboardAction(actionListener, escape, JComponent.WHEN_IN_FOCUSED_WINDOW);
}

From source file:repast.simphony.gis.ui.GeographyExportDialog.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();
    panel1 = new JPanel();
    title1 = compFactory.createTitle(//from   w  w  w.  j av a 2  s .  c om
            "<html>Select the layer to export to a shapefile and<br>\nclick Save to export. Click finished when done.</html>");
    scrollPane1 = new JScrollPane();
    layerTree = new JTree();
    buttonBar = new JPanel();
    saveBtn = new JButton();
    finishedBtn = new JButton();
    CellConstraints cc = new CellConstraints();

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

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

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

            //======== panel1 ========
            {
                panel1.setBackground(Color.white);
                panel1.setBorder(
                        new CompoundBorder(LineBorder.createBlackLineBorder(), new EmptyBorder(5, 5, 5, 5)));
                panel1.setLayout(new BorderLayout());

                //---- title1 ----
                title1.setBackground(Color.white);
                title1.setFont(new Font("Lucida Grande", Font.PLAIN, 13));
                panel1.add(title1, BorderLayout.CENTER);
            }
            contentPanel.add(panel1, cc.xy(1, 1));

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

                //---- layerTree ----
                layerTree.setVisibleRowCount(10);
                scrollPane1.setViewportView(layerTree);
            }
            contentPanel.add(scrollPane1, cc.xy(1, 3));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- saveBtn ----
            saveBtn.setText("Save");
            saveBtn.setToolTipText("Click to save layer");
            buttonBar.add(saveBtn, cc.xy(2, 1));

            //---- finishedBtn ----
            finishedBtn.setText("Finished");
            buttonBar.add(finishedBtn, 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:repast.simphony.ui.widget.MovieMakerDialog.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();
    panel1 = new JPanel();
    title1 = compFactory//from   w  w  w.ja va  2s . co  m
            .createTitle("<html><b>Export Movie</b><br>\nPlease specify a file and the frame capture rate.\n");
    label1 = new JLabel();
    fileFld = new JTextField();
    browseBtn = new JButton();
    label2 = new JLabel();
    intervalFld = new JTextField();
    panel2 = new JPanel();
    label3 = new JLabel();
    startingFld = new JTextField();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setModal(true);
    setTitle("Movie Export");
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            ColumnSpec.decode("max(default;50dlu)"), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC }));

            //======== panel1 ========
            {
                panel1.setBackground(Color.white);
                panel1.setBorder(LineBorder.createBlackLineBorder());
                panel1.setLayout(new FlowLayout(FlowLayout.LEFT));

                //---- title1 ----
                title1.setHorizontalAlignment(SwingConstants.LEFT);
                title1.setFont(new Font("Lucida Grande", Font.PLAIN, 13));
                panel1.add(title1);
            }
            contentPanel.add(panel1, cc.xywh(1, 1, 7, 1));

            //---- label1 ----
            label1.setText("File Name:");
            contentPanel.add(label1, cc.xywh(1, 3, 5, 1));

            //---- fileFld ----
            fileFld.setEditable(false);
            contentPanel.add(fileFld, cc.xywh(2, 5, 4, 1));

            //---- browseBtn ----
            browseBtn.setText("Browse");
            browseBtn.setToolTipText("Click to choose file");
            contentPanel.add(browseBtn, cc.xy(7, 5));

            //---- label2 ----
            label2.setText("Capture Frame Every:");
            contentPanel.add(label2, cc.xywh(1, 7, 7, 1));
            contentPanel.add(intervalFld, cc.xy(3, 9));

            //======== panel2 ========
            {
                panel2.setLayout(new FormLayout("default, default:grow", "default"));

                //---- label3 ----
                label3.setText("ticks, starting at ");
                panel2.add(label3, cc.xy(1, 1));
                panel2.add(startingFld, cc.xy(2, 1));
            }
            contentPanel.add(panel2, cc.xywh(5, 9, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

            //---- okButton ----
            okButton.setText("OK");
            okButton.setEnabled(false);
            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:repast.simphony.visualization.gui.styleBuilder.EditedEdgeStyleDialog.java

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

    // ======== this ========
    setModal(true);/*w  ww  .j  ava  2 s  .c  o m*/
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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