Logo Search packages:      
Sourcecode: pauker version File versions  Download package

void pauker::program::gui::swing::SearchDialog::initComponents (  )  [inline, private]

This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.

Definition at line 104 of file SearchDialog.java.

References closeDialog().

Referenced by SearchDialog().

                                  {
        java.awt.GridBagConstraints gridBagConstraints;

        sideButtonGroup = new javax.swing.ButtonGroup();
        directionButtonGroup = new javax.swing.ButtonGroup();
        patternLabel = new javax.swing.JLabel();
        patternField = new javax.swing.JTextField();
        searchButton = new javax.swing.JButton();
        radioButtonPanel = new javax.swing.JPanel();
        bothRadioButton = new javax.swing.JRadioButton();
        forwardRadioButton = new javax.swing.JRadioButton();
        frontRadioButton = new javax.swing.JRadioButton();
        backwardRadioButton = new javax.swing.JRadioButton();
        backRadioButton = new javax.swing.JRadioButton();
        matchCaseCheckBox = new javax.swing.JCheckBox();
        cancelButton = new javax.swing.JButton();
        statusLabel = new javax.swing.JLabel();

        getContentPane().setLayout(new java.awt.GridBagLayout());

        setTitle(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Search"));
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                closeDialog(evt);
            }
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });

        patternLabel.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Pattern"));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        getContentPane().add(patternLabel, gridBagConstraints);

        patternField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                patternFieldActionPerformed(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        getContentPane().add(patternField, gridBagConstraints);

        searchButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/filefind.png")));
        searchButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Search"));
        searchButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                searchButtonActionPerformed(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        getContentPane().add(searchButton, gridBagConstraints);

        radioButtonPanel.setLayout(new java.awt.GridBagLayout());

        sideButtonGroup.add(bothRadioButton);
        bothRadioButton.setSelected(true);
        bothRadioButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Both_Sides"));
        bothRadioButton.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                bothRadioButtonItemStateChanged(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        radioButtonPanel.add(bothRadioButton, gridBagConstraints);

        directionButtonGroup.add(forwardRadioButton);
        forwardRadioButton.setSelected(true);
        forwardRadioButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Forward"));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 20, 0, 0);
        radioButtonPanel.add(forwardRadioButton, gridBagConstraints);

        sideButtonGroup.add(frontRadioButton);
        frontRadioButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Frontside"));
        frontRadioButton.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                frontRadioButtonItemStateChanged(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        radioButtonPanel.add(frontRadioButton, gridBagConstraints);

        directionButtonGroup.add(backwardRadioButton);
        backwardRadioButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Backward"));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 20, 0, 0);
        radioButtonPanel.add(backwardRadioButton, gridBagConstraints);

        sideButtonGroup.add(backRadioButton);
        backRadioButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Reverse_Side"));
        backRadioButton.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                backRadioButtonItemStateChanged(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        radioButtonPanel.add(backRadioButton, gridBagConstraints);

        matchCaseCheckBox.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Match_Case"));
        matchCaseCheckBox.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                matchCaseCheckBoxItemStateChanged(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 20, 0, 0);
        radioButtonPanel.add(matchCaseCheckBox, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 0);
        getContentPane().add(radioButtonPanel, gridBagConstraints);

        cancelButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/stop.png")));
        cancelButton.setText(java.util.ResourceBundle.getBundle("pauker/Strings").getString("Cancel"));
        cancelButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelButtonActionPerformed(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 10);
        getContentPane().add(cancelButton, gridBagConstraints);

        statusLabel.setText("  ");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
        getContentPane().add(statusLabel, gridBagConstraints);

    }


Generated by  Doxygen 1.6.0   Back to index