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

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

Introduction

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

Prototype

ColumnSpec PREF_COLSPEC

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

Click Source Link

Document

An unmodifiable ColumnSpec that determines its width by computing the maximum of all column component preferred widths.

Usage

From source file:NewLinksDialog.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("NewLinksDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelLinks = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    JEditorPane urlsArea = ComponentFactory.getURLsEditorPane();
    JLabel labelSaveTo = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane2 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JXButtonPanel buttonBar = new JXButtonPanel();
    btnPasteFromClipboard = new JButton();
    okButton = new JButton();
    btnStartPaused = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

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

        //======== contentPanel ========
        {

            //---- labelLinks ----
            labelLinks.setText(bundle.getString("labelLinks.text"));
            labelLinks.setLabelFor(urlsArea);

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(urlsArea);
            }

            //---- labelSaveTo ----
            labelSaveTo.setText(bundle.getString("labelSaveTo.text"));
            labelSaveTo.setLabelFor(comboPath);

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

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

            //---- labelDescription ----
            labelDescription.setText(bundle.getString("labelDescription.text"));
            labelDescription.setLabelFor(descriptionArea);

            //======== scrollPane2 ========
            {
                scrollPane2.setViewportView(descriptionArea);
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.MIN_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(55)),
                                    FormSpec.DEFAULT_GROW) }),
                    contentPanel);

            contentPanelBuilder.add(labelLinks, cc.xy(1, 1));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 3, 5, 1));
            contentPanelBuilder.add(labelSaveTo, cc.xy(1, 5));
            contentPanelBuilder.add(comboPath, cc.xy(3, 5));
            contentPanelBuilder.add(btnSelectPath, cc.xy(5, 5));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane2, cc.xywh(3, 7, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

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

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

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

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

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.PREF_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 5, 7, 9 } });

            buttonBarBuilder.add(btnPasteFromClipboard, cc.xy(1, 1));
            buttonBarBuilder.add(okButton, cc.xy(5, 1));
            buttonBarBuilder.add(btnStartPaused, cc.xy(7, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(9, 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:PluginDetailPanel.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("PluginDetails");
    titleSeparator = new JXTitledSeparator();
    JLabel labelVersion = new JLabel();
    versionLabel = new JLabel();
    JLabel labelAuthor = new JLabel();
    authorLabel = new JLabel();
    JLabel labelServices = new JLabel();
    servicesLabel = new JLabel();
    checkboxPluginIsActive = new JCheckBox();
    checkboxUpdatePlugins = new JCheckBox();
    checkboxClipboardMonitoring = new JCheckBox();
    JLabel labelMaxConnections = new JLabel();
    spinnerMaxPluginConnections = new JSpinner();
    JLabel labelPriority = new JLabel();
    spinnerPluginPriority = new JSpinner();
    btnPriorityUp = new JButton();
    btnPriorityDown = new JButton();
    pluginHyperlink = new JXHyperlink();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(new EmptyBorder(3, 3, 0, 2));

    //---- titleSeparator ----
    titleSeparator.setTitle(" ");

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

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

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

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

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

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

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

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

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

    //---- labelMaxConnections ----
    labelMaxConnections.setText(bundle.getString("labelMaxConnections.text"));
    labelMaxConnections.setPreferredSize(new Dimension(180, 14));
    labelMaxConnections.setLabelFor(spinnerMaxPluginConnections);

    //---- spinnerMaxPluginConnections ----
    spinnerMaxPluginConnections.setModel(new SpinnerNumberModel(1, 1, null, 1));

    //---- labelPriority ----
    labelPriority.setText(bundle.getString("labelPriority.text"));
    labelPriority.setLabelFor(spinnerPluginPriority);

    //---- spinnerPluginPriority ----
    spinnerPluginPriority.setModel(new SpinnerNumberModel(1, 1, 1000, 1));

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

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

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

    PanelBuilder builder = new PanelBuilder(new FormLayout(
            new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                    ColumnSpec.decode("max(pref;30dlu)"), 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(ColumnSpec.FILL, Sizes.MINIMUM, FormSpec.DEFAULT_GROW) },
            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, FormSpecs.LINE_GAP_ROWSPEC,
                    FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }),
            this);
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 7, 9 } });

    builder.add(titleSeparator, cc.xywh(1, 1, 11, 1));
    builder.add(labelVersion, cc.xy(1, 3));
    builder.add(versionLabel, cc.xywh(3, 3, 9, 1));
    builder.add(labelAuthor, cc.xy(1, 5));
    builder.add(authorLabel, cc.xywh(3, 5, 9, 1));
    builder.add(labelServices, cc.xy(1, 7));
    builder.add(servicesLabel, cc.xywh(3, 7, 7, 1));
    builder.add(checkboxPluginIsActive, cc.xywh(1, 9, 11, 1));
    builder.add(checkboxUpdatePlugins, cc.xywh(1, 11, 11, 1));
    builder.add(checkboxClipboardMonitoring, cc.xywh(1, 13, 11, 1));
    builder.add(labelMaxConnections, cc.xywh(1, 15, 3, 1));
    builder.add(spinnerMaxPluginConnections, cc.xy(5, 15));
    builder.add(labelPriority, cc.xywh(1, 17, 3, 1));
    builder.add(spinnerPluginPriority, cc.xy(5, 17));
    builder.add(btnPriorityUp, cc.xy(7, 17));
    builder.add(btnPriorityDown, cc.xy(9, 17));
    builder.add(pluginHyperlink, cc.xywh(1, 19, 9, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

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 ========
    {/*from  w  w w .  j  ava 2  s  . c o 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 ========
    {//from   www  . j a v a 2 s.c  om
        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 va2 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.NewLinksDialog.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("NewLinksDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelLinks = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    urlsArea = ComponentFactory.getURLsEditorPane();
    JLabel labelSaveTo = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane2 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JXButtonPanel buttonBar = new JXButtonPanel();
    btnPasteFromClipboard = new JButton();
    okButton = new JButton();
    btnStartPaused = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

    //======== dialogPane ========
    {// w ww.j  a v a2 s. co  m
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- labelLinks ----
            labelLinks.setName("labelLinks");
            labelLinks.setLabelFor(urlsArea);

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(urlsArea);
            }

            //---- labelSaveTo ----
            labelSaveTo.setName("labelSaveTo");
            labelSaveTo.setLabelFor(comboPath);

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

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

            //---- labelDescription ----
            labelDescription.setName("labelDescription");
            labelDescription.setLabelFor(descriptionArea);

            //======== scrollPane2 ========
            {
                scrollPane2.setViewportView(descriptionArea);
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.MIN_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(55)),
                                    FormSpec.DEFAULT_GROW) }),
                    contentPanel);

            contentPanelBuilder.add(labelLinks, cc.xy(1, 1));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 3, 5, 1));
            contentPanelBuilder.add(labelSaveTo, cc.xy(1, 5));
            contentPanelBuilder.add(comboPath, cc.xy(3, 5));
            contentPanelBuilder.add(btnSelectPath, cc.xy(5, 5));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane2, cc.xywh(3, 7, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

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

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

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

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

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"), },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 5, 9 } });

            buttonBarBuilder.add(btnPasteFromClipboard, cc.xy(1, 1));
            buttonBarBuilder.add(okButton, cc.xy(5, 1));
            buttonBarBuilder.add(btnStartPaused, cc.xy(7, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(9, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
}

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 ========
    {/* ww  w.  j a  v  a  2  s  .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.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:cz.vity.freerapid.gui.dialogs.userprefs.PluginDetailPanel.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("PluginDetails");
    titleSeparator = new JXTitledSeparator();
    JLabel labelVersion = new JLabel();
    versionLabel = new JLabel();
    JLabel labelAuthor = new JLabel();
    authorLabel = new JLabel();
    JLabel labelServices = new JLabel();
    servicesLabel = new JLabel();
    checkboxPluginIsActive = new JCheckBox();
    checkboxUpdatePlugins = new JCheckBox();
    checkboxClipboardMonitoring = new JCheckBox();
    JLabel labelMaxConnections = new JLabel();
    labelMaxConnections.setPreferredSize(new Dimension(80, 20));
    labelMaxConnections.setMinimumSize(new Dimension(80, 20));
    spinnerMaxPluginConnections = new JSpinner();
    JLabel labelPriority = new JLabel();
    spinnerPluginPriority = new JSpinner();
    btnPriorityUp = new JButton();
    btnPriorityDown = new JButton();
    pluginHyperlink = new JXHyperlink();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setBorder(new EmptyBorder(3, 3, 0, 2));

    //---- titleSeparator ----
    titleSeparator.setTitle(" ");

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

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

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

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

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

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

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

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

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

    //---- labelMaxConnections ----
    labelMaxConnections.setName("labelMaxConnections");
    labelMaxConnections.setPreferredSize(new Dimension(180, 14));

    //---- spinnerMaxPluginConnections ----
    spinnerMaxPluginConnections.setModel(new SpinnerNumberModel(1, 1, null, 1));

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

    //---- spinnerPluginPriority ----
    spinnerPluginPriority.setModel(new SpinnerNumberModel(1, 1, 1000, 1));

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

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

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

    PanelBuilder builder = new PanelBuilder(new FormLayout(
            new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                    ColumnSpec.decode("max(pref;30dlu)"), 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(ColumnSpec.FILL, Sizes.MINIMUM, FormSpec.DEFAULT_GROW) },
            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, FormSpecs.LINE_GAP_ROWSPEC,
                    FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }),
            this);
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 7, 9 } });

    builder.add(titleSeparator, cc.xywh(1, 1, 11, 1));
    builder.add(labelVersion, cc.xy(1, 3));
    builder.add(versionLabel, cc.xywh(3, 3, 9, 1));
    builder.add(labelAuthor, cc.xy(1, 5));
    builder.add(authorLabel, cc.xywh(3, 5, 9, 1));
    builder.add(labelServices, cc.xy(1, 7));
    builder.add(servicesLabel, cc.xywh(3, 7, 7, 1));
    builder.add(checkboxPluginIsActive, cc.xywh(1, 9, 11, 1));
    builder.add(checkboxUpdatePlugins, cc.xywh(1, 11, 11, 1));
    builder.add(checkboxClipboardMonitoring, cc.xywh(1, 13, 11, 1));
    builder.add(labelMaxConnections, cc.xywh(1, 15, 3, 1));
    builder.add(spinnerMaxPluginConnections, cc.xy(5, 15));
    builder.add(labelPriority, cc.xywh(1, 17, 3, 1));
    builder.add(spinnerPluginPriority, cc.xy(5, 17));
    builder.add(btnPriorityUp, cc.xy(7, 17));
    builder.add(btnPriorityDown, cc.xy(9, 17));
    builder.add(pluginHyperlink, cc.xywh(1, 19, 9, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:de.kernwelt.gpxtcx.MainFrame.java

License:Open Source License

/**
 * Create the frame.//from www.j  a va 2  s . co m
 */
public MainFrame() {
    setTitle("GPX/TCX Merge");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    // setBounds(100, 100, 490, 353);
    contentPane = new JPanel();
    contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
    setContentPane(contentPane);
    contentPane.setLayout(new FormLayout(
            new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC,
                    FormSpecs.RELATED_GAP_COLSPEC, ColumnSpec.decode("left:default:grow"),
                    FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                    FormSpecs.RELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC, },
            new RowSpec[] { FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.MIN_ROWSPEC,
                    FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.MIN_ROWSPEC,
                    FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC,
                    FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.PREF_ROWSPEC,
                    FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC,
                    FormSpecs.PREF_ROWSPEC, FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                    FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.PREF_ROWSPEC, }));

    JLabel lblGpxFile = new JLabel("GPX File:");
    contentPane.add(lblGpxFile, "1, 3, right, default");

    gpxFileField = new JTextField();
    gpxFileField.setEditable(false);
    contentPane.add(gpxFileField, "3, 3, 4, 1, fill, default");
    gpxFileField.setColumns(10);

    readGpxBtn = new JButton("Read...");
    contentPane.add(readGpxBtn, "10, 3");

    JLabel lblTcxFile = new JLabel("TCX File:");
    contentPane.add(lblTcxFile, "1, 6, right, default");

    tcxFileField = new JTextField();
    tcxFileField.setEditable(false);
    contentPane.add(tcxFileField, "3, 6, 4, 1, fill, default");
    tcxFileField.setColumns(10);

    readTcxBtn = new JButton("Read...");
    contentPane.add(readTcxBtn, "10, 6");

    separator = new JSeparator();
    contentPane.add(separator, "1, 10, 10, 1, fill, default");

    lblNewLabel = new JLabel("GPX Start Time:");
    contentPane.add(lblNewLabel, "1, 12, right, default");

    gpxStartTime = new JTextField();
    gpxStartTime.setEditable(false);
    contentPane.add(gpxStartTime, "3, 12, left, default");
    gpxStartTime.setColumns(20);

    lblNewLabel_1 = new JLabel("TCX Start Time:");
    contentPane.add(lblNewLabel_1, "1, 16, right, default");

    tcxStartTime = new JTextField();
    tcxStartTime.setEditable(false);
    contentPane.add(tcxStartTime, "3, 16, left, default");
    tcxStartTime.setColumns(20);

    btnAlignTime = new JButton("Align Timebase");
    contentPane.add(btnAlignTime, "5, 16");

    separator_1 = new JSeparator();
    contentPane.add(separator_1, "1, 18, 10, 1");

    saveBtn = new JButton("Merge & Save");
    contentPane.add(saveBtn, "10, 20");
}