Example usage for com.jgoodies.forms.layout FormLayout FormLayout

List of usage examples for com.jgoodies.forms.layout FormLayout FormLayout

Introduction

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

Prototype

public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) 

Source Link

Document

Constructs a FormLayout using the given column and row specifications.

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 . j av a2s . com
        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:Tree1.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Roman Boiko
    panel1 = new JPanel();
    JButton Zakaz = new JButton();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("23*(default, $lcgap), default", "15*(default, $lgap), default"));

    //======== panel1 ========
    {//from   w  ww  .  j  a  v a 2  s  .com

        // JFormDesigner evaluation mark
        panel1.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                        javax.swing.border.TitledBorder.BOTTOM,
                        new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                panel1.getBorder()));
        panel1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent e) {
                if ("border".equals(e.getPropertyName()))
                    throw new RuntimeException();
            }
        });

        panel1.setLayout(new FormLayout("8*(default, $lcgap), default", "2*(default, $lgap), default"));

        //---- Zakaz ----
        Zakaz.setText("text");
        Zakaz.addActionListener(e -> ZakazActionPerformed(e));
        panel1.add(Zakaz, CC.xywh(1, 1, 17, 5));
    }
    contentPane.add(panel1, CC.xy(19, 9));
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:EditAutoWatchView.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel1 = new JPanel();
    userInputPanel = new JPanel();
    profileNameText = new JTextField();
    addButton = new JButton();
    separator1 = new JSeparator();
    label7 = new JLabel();
    watchListPanel = new JPanel();
    watch1Label = new JLabel();
    deleteWatch1Button = new JButton();
    watch2Label = new JLabel();
    deleteWatch2Button = new JButton();
    watch3Label = new JLabel();
    deleteWatch3Button = new JButton();
    watch4Label = new JLabel();
    deleteWatch4Button = new JButton();
    watch5Label = new JLabel();
    deleteWatch5Button = new JButton();
    separator2 = new JSeparator();
    buttonPanel = new JPanel();
    closeButton = new JButton();
    clearButton = new JButton();

    //======== this ========
    setTitle("Watched Profiles");
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("100dlu, $lcgap, default", "148dlu:grow"));

    //======== panel1 ========
    {/*  ww  w .  java  2 s  . c o  m*/
        panel1.setPreferredSize(new Dimension(200, 240));
        panel1.setLayout(new FormLayout("left:97dlu", "fill:min, 2*(default), $lgap, min, 8dlu, 20dlu"));

        //======== userInputPanel ========
        {
            userInputPanel.setName("userInputPanel");
            userInputPanel.setPreferredSize(new Dimension(250, 150));
            userInputPanel.setLayout(new FormLayout("left:55dlu, 31dlu", "default"));

            //---- profileNameText ----
            profileNameText.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            profileNameText.setName("profilename");
            profileNameText.setPreferredSize(new Dimension(100, 25));
            profileNameText.addKeyListener(new KeyAdapter() {
                @Override
                public void keyReleased(KeyEvent e) {
                    profileNameTextKeyReleased(e);
                }
            });
            userInputPanel.add(profileNameText, CC.xy(1, 1));

            //---- addButton ----
            addButton.setText("Add");
            addButton.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            addButton.setName("addButton");
            addButton.setEnabled(false);
            addButton.setPreferredSize(new Dimension(50, 20));
            addButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    addButtonActionPerformed(e);
                }
            });
            userInputPanel.add(addButton,
                    new CellConstraints(2, 1, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));
        }
        panel1.add(userInputPanel, CC.xy(1, 1));
        panel1.add(separator1, CC.xy(1, 2, CC.FILL, CC.DEFAULT));

        //---- label7 ----
        label7.setText("Watched Profiles");
        panel1.add(label7, new CellConstraints(1, 3, 1, 1, CC.DEFAULT, CC.DEFAULT, new Insets(0, 5, 0, 0)));

        //======== watchListPanel ========
        {
            watchListPanel.setName("watchListPanel");
            watchListPanel.setPreferredSize(new Dimension(200, 160));
            watchListPanel.setLayout(new FormLayout("55dlu:grow, 45dlu",
                    "14dlu, $nlgap, 14dlu, $lcgap, 2*(14dlu, $nlgap), 14dlu"));

            //---- watch1Label ----
            watch1Label.setFont(new Font("Lucida Grande", Font.ITALIC, 12));
            watch1Label.setName("watch1");
            watchListPanel.add(watch1Label, CC.xy(1, 1));

            //---- deleteWatch1Button ----
            deleteWatch1Button.setText("Delete");
            deleteWatch1Button.setPreferredSize(new Dimension(50, 20));
            deleteWatch1Button.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            deleteWatch1Button.setName("deleteWatch1Button");
            deleteWatch1Button.setVisible(false);
            deleteWatch1Button.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteWatch1ButtonActionPerformed(e);
                }
            });
            watchListPanel.add(deleteWatch1Button,
                    new CellConstraints(2, 1, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));

            //---- watch2Label ----
            watch2Label.setFont(new Font("Lucida Grande", Font.ITALIC, 12));
            watch2Label.setName("watch2");
            watchListPanel.add(watch2Label, CC.xy(1, 3));

            //---- deleteWatch2Button ----
            deleteWatch2Button.setText("Delete");
            deleteWatch2Button.setPreferredSize(new Dimension(50, 20));
            deleteWatch2Button.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            deleteWatch2Button.setName("deleteWatch2Button");
            deleteWatch2Button.setVisible(false);
            deleteWatch2Button.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteWatch2ButtonActionPerformed(e);
                }
            });
            watchListPanel.add(deleteWatch2Button,
                    new CellConstraints(2, 3, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));

            //---- watch3Label ----
            watch3Label.setFont(new Font("Lucida Grande", Font.ITALIC, 12));
            watch3Label.setName("watch3");
            watchListPanel.add(watch3Label, CC.xy(1, 5));

            //---- deleteWatch3Button ----
            deleteWatch3Button.setText("Delete");
            deleteWatch3Button.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            deleteWatch3Button.setPreferredSize(new Dimension(50, 20));
            deleteWatch3Button.setName("deleteWatch3Button");
            deleteWatch3Button.setVisible(false);
            deleteWatch3Button.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteWatch3ButtonActionPerformed(e);
                }
            });
            watchListPanel.add(deleteWatch3Button,
                    new CellConstraints(2, 5, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));

            //---- watch4Label ----
            watch4Label.setFont(new Font("Lucida Grande", Font.ITALIC, 12));
            watch4Label.setName("watch4");
            watchListPanel.add(watch4Label, CC.xy(1, 7));

            //---- deleteWatch4Button ----
            deleteWatch4Button.setText("Delete");
            deleteWatch4Button.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            deleteWatch4Button.setPreferredSize(new Dimension(50, 20));
            deleteWatch4Button.setName("deleteWatch4Button");
            deleteWatch4Button.setVisible(false);
            deleteWatch4Button.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteWatch4ButtonActionPerformed(e);
                }
            });
            watchListPanel.add(deleteWatch4Button,
                    new CellConstraints(2, 7, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));

            //---- watch5Label ----
            watch5Label.setFont(new Font("Lucida Grande", Font.ITALIC, 12));
            watch5Label.setName("watch5");
            watchListPanel.add(watch5Label, CC.xy(1, 9));

            //---- deleteWatch5Button ----
            deleteWatch5Button.setText("Delete");
            deleteWatch5Button.setFont(new Font("Lucida Grande", Font.PLAIN, 10));
            deleteWatch5Button.setPreferredSize(new Dimension(50, 20));
            deleteWatch5Button.setName("deleteWatch5Button");
            deleteWatch5Button.setVisible(false);
            deleteWatch5Button.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteWatch5ButtonActionPerformed(e);
                }
            });
            watchListPanel.add(deleteWatch5Button,
                    new CellConstraints(2, 9, 1, 1, CC.LEFT, CC.DEFAULT, new Insets(0, 5, 0, 0)));
        }
        panel1.add(watchListPanel, new CellConstraints(1, 5, 1, 1, CC.DEFAULT, CC.TOP, new Insets(0, 5, 0, 0)));
        panel1.add(separator2, CC.xy(1, 6, CC.FILL, CC.DEFAULT));

        //======== buttonPanel ========
        {
            buttonPanel.setLayout(new FormLayout("default, 3dlu, default, $lcgap, default", "default"));

            //---- closeButton ----
            closeButton.setText("Close");
            closeButton.setFont(new Font("Lucida Grande", Font.PLAIN, 12));
            closeButton.setName("closeButton");
            closeButton.setPreferredSize(new Dimension(50, 20));
            closeButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    closeButtonActionPerformed(e);
                }
            });
            buttonPanel.add(closeButton, CC.xy(1, 1));

            //---- clearButton ----
            clearButton.setText("Clear");
            clearButton.setPreferredSize(new Dimension(50, 20));
            clearButton.setFont(new Font("Lucida Grande", Font.PLAIN, 12));
            clearButton.setName("clearButton");
            clearButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    clearButtonActionPerformed(e);
                }
            });
            buttonPanel.add(clearButton, CC.xy(3, 1));
        }
        panel1.add(buttonPanel, CC.xy(1, 7, CC.FILL, CC.FILL));
    }
    contentPane.add(panel1, new CellConstraints(1, 1, 1, 1, CC.DEFAULT, CC.TOP, new Insets(5, 5, 0, 0)));
    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:CheckProfileView.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel1 = new JPanel();
    profileNameText = new JTextField();
    goButton = new JButton();

    //======== this ========
    setTitle("Enter Profile Name");
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default, $lcgap, default", "default"));

    //======== panel1 ========
    {/*from ww w.  j  a  v a 2 s  .  c  om*/
        panel1.setLayout(new FormLayout("64dlu, $lcgap, default", "default"));

        //---- profileNameText ----
        profileNameText.setName("profileNameText");
        panel1.add(profileNameText, CC.xy(1, 1));

        //---- goButton ----
        goButton.setText("Go");
        goButton.setName("goButton");
        goButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                goButtonActionPerformed(e);
            }
        });
        panel1.add(goButton, CC.xy(3, 1));
    }
    contentPane.add(panel1, CC.xy(1, 1));
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:DownloadHistoryDialog.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("DownloadHistoryDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JPanel panel1 = new JPanel();
    combobox = new JComboBox();
    JLabel labelFilter = new JLabel();
    fieldFilter = new JTextField();
    JScrollPane scrollPane2 = new JScrollPane();
    table = new JXTable();
    JXButtonPanel buttonBar = new JXButtonPanel();
    clearHistoryBtn = new JButton();
    okButton = new JButton();
    CellConstraints cc = new CellConstraints();

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

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

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

            //======== panel1 ========
            {
                panel1.setBorder(new TitledBorder(bundle.getString("panel1.border")));

                //---- labelFilter ----
                labelFilter.setText(bundle.getString("labelFilter.text"));
                labelFilter.setLabelFor(fieldFilter);

                PanelBuilder panel1Builder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] { ColumnSpec.decode("max(pref;80dlu)"),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(100)),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        RowSpec.decodeSpecs("default")), panel1);

                panel1Builder.add(combobox, cc.xy(1, 1));
                panel1Builder.add(labelFilter, cc.xy(3, 1));
                panel1Builder.add(fieldFilter, cc.xy(5, 1));
            }

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

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

            contentPanelBuilder.add(panel1, cc.xy(1, 1));
            contentPanelBuilder.add(scrollPane2, cc.xy(1, 3));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

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

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

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

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;55dlu)") },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);

            buttonBarBuilder.add(clearHistoryBtn, cc.xy(1, 1));
            buttonBarBuilder.add(okButton, cc.xy(5, 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:ClientLoginGUI.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Austin Seber
    clientLoginGUI = new JPanel();
    contentPanel = new JPanel();
    usernameTextField = new JTextField();
    passwordTextField = new JPasswordField();
    saveLoginInformationCheckBox = new JCheckBox();
    buttonBar = new JPanel();
    notificationTextField = new JTextField();
    loginButton = new JButton();
    cancelButton = new JButton();

    //======== this ========
    setTitle("Login to server");
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== clientLoginGUI ========
    {//from   ww  w  .  j a  v  a  2  s  .  c  o m
        clientLoginGUI.setBorder(Borders.DIALOG_BORDER);

        clientLoginGUI.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout("132dlu, $lcgap, 107dlu", "2*(default, $lgap), default"));

            //---- usernameTextField ----
            usernameTextField.setBorder(new TitledBorder(null, "Username", TitledBorder.LEADING,
                    TitledBorder.DEFAULT_POSITION, null, Color.black));
            usernameTextField.setBackground(new Color(240, 240, 240));
            usernameTextField.setCursor(Cursor.getPredefinedCursor(Cursor.TEXT_CURSOR));
            usernameTextField.setAction(null);
            contentPanel.add(usernameTextField, CC.xywh(1, 1, 3, 1));
            usernameTextField.addKeyListener(new KeyListener() {

                @Override
                public void keyPressed(KeyEvent key) {

                    if (key.getKeyCode() == KeyEvent.VK_ENTER) {

                        loginButtonMouseClicked();

                    }

                    if (key.getKeyCode() == KeyEvent.VK_ESCAPE) {

                        cancelButtonMouseClicked();

                    }

                }

                @Override
                public void keyReleased(KeyEvent arg0) {
                }

                @Override
                public void keyTyped(KeyEvent arg0) {
                }

            });

            //---- passwordTextField ----
            passwordTextField.setBorder(new TitledBorder("Password"));
            passwordTextField.setBackground(new Color(240, 240, 240));
            contentPanel.add(passwordTextField, CC.xywh(1, 3, 3, 1));
            passwordTextField.addKeyListener(new KeyListener() {

                @Override
                public void keyPressed(KeyEvent key) {

                    if (key.getKeyCode() == KeyEvent.VK_ENTER) {

                        loginButtonMouseClicked();

                    }

                    if (key.getKeyCode() == KeyEvent.VK_ESCAPE) {

                        cancelButtonMouseClicked();

                    }

                }

                @Override
                public void keyReleased(KeyEvent arg0) {
                }

                @Override
                public void keyTyped(KeyEvent arg0) {
                }

            });

            //---- saveLoginInformationCheckBox ----
            saveLoginInformationCheckBox.setText("Save login information");
            saveLoginInformationCheckBox.setBorder(new LineBorder(new Color(0, 0, 0, 0), 2));
            contentPanel.add(saveLoginInformationCheckBox, CC.xy(3, 5));
        }
        clientLoginGUI.add(contentPanel, BorderLayout.NORTH);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
            buttonBar.setLayout(
                    new FormLayout("$lcgap, default, $glue, $lcgap, default, $button, $rgap, $button", "pref"));

            //---- notificationTextField ----
            notificationTextField.setBackground(new Color(240, 240, 240));
            notificationTextField.setBorder(new LineBorder(new Color(0, 0, 0, 0), 2));
            notificationTextField.setEditable(false);
            buttonBar.add(notificationTextField, CC.xywh(2, 1, 3, 1));

            //---- loginButton ----
            loginButton.setText("Login");
            loginButton.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {

                    loginButtonMouseClicked();

                }

            });
            buttonBar.add(loginButton, CC.xy(6, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            cancelButton.addActionListener(new ActionListener() {

                @Override
                public void actionPerformed(ActionEvent e) {

                    cancelButtonMouseClicked();

                }

            });
            buttonBar.add(cancelButton, CC.xy(8, 1));
        }
        clientLoginGUI.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(clientLoginGUI, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    loginButton.setFocusable(false);
    //loginButton.setMnemonic(KeyEvent.VK_ENTER);
    cancelButton.setFocusable(false);
    //cancelButton.setMnemonic(KeyEvent.VK_ESCAPE);

}

From source file:DecoderForm.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - sed sed
    selectFileButton = new JButton();
    selectFileText = new JTextField();
    outputDirectory = new JButton();
    outputDirectoryText = new JTextField();
    label2 = new JLabel();
    scrollPane1 = new JScrollPane();
    keywordsArea = new JTextArea();
    startButton = new JButton();

    //======== this ========

    // JFormDesigner evaluation mark
    setBorder(/*from  www .j a v a 2s. c  o m*/
            new javax.swing.border.CompoundBorder(
                    new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                            "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                            javax.swing.border.TitledBorder.BOTTOM,
                            new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                    getBorder()));
    addPropertyChangeListener(new java.beans.PropertyChangeListener() {
        public void propertyChange(java.beans.PropertyChangeEvent e) {
            if ("border".equals(e.getPropertyName()))
                throw new RuntimeException();
        }
    });

    setLayout(new FormLayout("default, $lcgap, 82dlu, $lcgap, default, $lcgap, 135dlu",
            "7*(default, $lgap), 38dlu, 3*($lgap, default)"));

    //---- selectFileButton ----
    selectFileButton.setText("Select file");
    selectFileButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            selectFileButtonClick(e);
        }
    });
    add(selectFileButton, CC.xywh(3, 5, 2, 1));
    add(selectFileText, CC.xy(7, 5));

    //---- outputDirectory ----
    outputDirectory.setText("Output directory");
    outputDirectory.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            outputDirectoryClick(e);
        }
    });
    add(outputDirectory, CC.xywh(3, 9, 2, 1));
    add(outputDirectoryText, CC.xy(7, 9));

    //---- label2 ----
    label2.setText("Keywords(per comma):");
    add(label2, CC.xywh(3, 13, 3, 1));

    //======== scrollPane1 ========
    {
        scrollPane1.setViewportView(keywordsArea);
    }
    add(scrollPane1, CC.xywh(3, 14, 5, 4));

    //---- startButton ----
    startButton.setText("Start");
    startButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            startButtonClick(e);
        }
    });
    add(startButton, CC.xywh(3, 21, 5, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:MainForm.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - ??????????? ????????
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    setFileTitle = new JLabel();
    textField1 = new JTextField();
    setFileButton = new JButton();
    label4 = new JLabel();
    radioButton1 = new JRadioButton();
    radioButton2 = new JRadioButton();
    label1 = new JLabel();
    label2 = new JLabel();
    scrollPane1 = new JScrollPane();
    openTextArea = new JTextArea();
    scrollPane2 = new JScrollPane();
    encryptTextArea = new JTextArea();
    buttonBar = new JPanel();
    label3 = new JLabel();
    progressBar1 = new JProgressBar();
    okButton = new JButton();
    cancelButton = new JButton();

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

    //======== dialogPane ========
    {/*from   www  . j a v a 2  s .  co m*/
        dialogPane.setBorder(Borders.createEmptyBorder("7dlu, 7dlu, 7dlu, 7dlu"));

        // JFormDesigner evaluation mark
        dialogPane.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                        javax.swing.border.TitledBorder.BOTTOM,
                        new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                dialogPane.getBorder()));
        dialogPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent e) {
                if ("border".equals(e.getPropertyName()))
                    throw new RuntimeException();
            }
        });

        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    "104dlu, $lcgap, 119dlu, $lcgap, 45dlu, $lcgap, default, $lcgap, 199dlu, $lcgap, default",
                    "5*(default, $lgap), 13dlu, 3*($lgap, default), $lgap, 62dlu"));

            //---- setFileTitle ----
            setFileTitle.setText("Choose the encrypt file");
            contentPanel.add(setFileTitle, CC.xy(1, 1));
            contentPanel.add(textField1, CC.xywh(1, 3, 3, 1));

            //---- setFileButton ----
            setFileButton.setText("Choose");
            contentPanel.add(setFileButton, CC.xy(5, 3));

            //---- label4 ----
            label4.setText("Mode");
            contentPanel.add(label4, CC.xy(1, 5));

            //---- radioButton1 ----
            radioButton1.setText("Encrypting");
            contentPanel.add(radioButton1, CC.xy(1, 7));

            //---- radioButton2 ----
            radioButton2.setText("Decryption");
            contentPanel.add(radioButton2, CC.xy(1, 9));

            //---- label1 ----
            label1.setText("Open Text");
            contentPanel.add(label1, CC.xy(1, 11));

            //---- label2 ----
            label2.setText("Encrypt Text");
            contentPanel.add(label2, CC.xywh(9, 11, 3, 1));

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

                //---- openTextArea ----
                openTextArea.setRows(5);
                openTextArea.setLineWrap(true);
                scrollPane1.setViewportView(openTextArea);
            }
            contentPanel.add(scrollPane1, CC.xywh(1, 13, 3, 7));

            //======== scrollPane2 ========
            {
                scrollPane2.setViewportView(encryptTextArea);
            }
            contentPanel.add(scrollPane2, CC.xywh(7, 13, 3, 7));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.createEmptyBorder("5dlu, 0dlu, 0dlu, 0dlu"));
            buttonBar.setLayout(
                    new FormLayout("$lcgap, default, $glue, $button, $rgap, $button", "2*(default), pref"));

            //---- label3 ----
            label3.setText("Progress");
            buttonBar.add(label3, CC.xy(2, 2));
            buttonBar.add(progressBar1, CC.xy(2, 3));

            //---- okButton ----
            okButton.setText("OK");
            buttonBar.add(okButton, CC.xy(4, 3));

            //---- cancelButton ----
            cancelButton.setText("Exit");
            buttonBar.add(cancelButton, CC.xy(6, 3));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(getOwner());
    // 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 ========
    {//  www.  j  ava2 s  .com
        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
}