gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 5; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); getContentPane().add(progressBar, gridBagConstraints);
progressLabel.setFont(new java.awt.Font("Dialog", 0, 12)); progressLabel.setText("Progress:"); progressLabel.setText(L10N.getLocalString("dlg.progress_lbl", "Progress:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); getContentPane().add(progressLabel, gridBagConstraints);
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        findBugsLabel = new javax.swing.JLabel();        countLabel = new javax.swing.JLabel();        progressLabel = new javax.swing.JLabel();        progressBar = new javax.swing.JProgressBar();        cancelButton = new javax.swing.JButton();        jSeparator1 = new javax.swing.JSeparator();        stageLabel = new javax.swing.JLabel();        stageNameLabel = new javax.swing.JLabel();        topVerticalFiller = new javax.swing.JLabel();        bottomVerticalFiller = new javax.swing.JLabel();        countValueLabel = new javax.swing.JLabel();        getContentPane().setLayout(new java.awt.GridBagLayout());        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                closeDialog(evt);            }            public void windowOpened(java.awt.event.WindowEvent evt) {                formWindowOpened(evt);            }        });        findBugsLabel.setBackground(new java.awt.Color(0, 0, 204));        findBugsLabel.setFont(new java.awt.Font("Dialog", 1, 24));        findBugsLabel.setForeground(new java.awt.Color(255, 255, 255));        findBugsLabel.setText("Find Bugs!");        findBugsLabel.setOpaque(true);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);        getContentPane().add(findBugsLabel, gridBagConstraints);        countLabel.setFont(new java.awt.Font("Dialog", 0, 12));        countLabel.setText("Count:");        countLabel.setText(L10N.getLocalString("dlg.count_lbl", "Count:"));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        getContentPane().add(countLabel, gridBagConstraints);        progressLabel.setFont(new java.awt.Font("Dialog", 0, 12));        progressLabel.setText("Progress:");        progressLabel.setText(L10N.getLocalString("dlg.progress_lbl", "Progress:"));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 5;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        getContentPane().add(progressLabel, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 5;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        getContentPane().add(progressBar, gridBagConstraints);        cancelButton.setFont(new java.awt.Font("Dialog", 0, 12));        cancelButton.setText("Cancel");        cancelButton.setText(L10N.getLocalString("dlg.cancel_btn", "Cancel"));        cancelButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                cancelButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 8;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0);        getContentPane().add(cancelButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 7;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        getContentPane().add(jSeparator1, gridBagConstraints);        stageLabel.setFont(new java.awt.Font("Dialog", 0, 12));        stageLabel.setText("Stage:");        stageLabel.setText(L10N.getLocalString("dlg.stage_lbl", "Stage:"));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        getContentPane().add(stageLabel, gridBagConstraints);        stageNameLabel.setFont(new java.awt.Font("Dialog", 0, 12));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        getContentPane().add(stageNameLabel, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 6;        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;        gridBagConstraints.weighty = 0.5;        getContentPane().add(topVerticalFiller, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;        gridBagConstraints.weighty = 0.5;        getContentPane().add(bottomVerticalFiller, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0);        getContentPane().add(countValueLabel, gridBagConstraints);        pack();    }//GEN-END:initComponents