groupByChooser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { groupByChooserActionPerformed(evt); } });  gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; bugTreePanel.add(groupByChooser, gridBagConstraints);  groupByLabel.setFont(new java.awt.Font("Dialog", 0, 12)); groupByLabel.setText("Group:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 0); bugTreePanel.add(groupByLabel, gridBagConstraints);
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        consoleSplitter = new javax.swing.JSplitPane();        viewPanel = new javax.swing.JPanel();        emptyPanel = new javax.swing.JPanel();        reportPanel = new javax.swing.JPanel();        editProjectPanel = new javax.swing.JPanel();        jarFileLabel = new javax.swing.JLabel();        jarNameTextField = new javax.swing.JTextField();        addJarButton = new javax.swing.JButton();        jarFileListLabel = new javax.swing.JLabel();        sourceDirLabel = new javax.swing.JLabel();        srcDirTextField = new javax.swing.JTextField();        addSourceDirButton = new javax.swing.JButton();        sourceDirListLabel = new javax.swing.JLabel();        removeJarButton = new javax.swing.JButton();        removeSrcDirButton = new javax.swing.JButton();        jSeparator1 = new javax.swing.JSeparator();        browseJarButton = new javax.swing.JButton();        browseSrcDirButton = new javax.swing.JButton();        editProjectLabel = new javax.swing.JLabel();        jSeparator2 = new javax.swing.JSeparator();        findBugsButton = new javax.swing.JButton();        jSeparator4 = new javax.swing.JSeparator();        jarFileListScrollPane = new javax.swing.JScrollPane();        jarFileList = new javax.swing.JList();        sourceDirListScrollPane = new javax.swing.JScrollPane();        sourceDirList = new javax.swing.JList();        bugTreePanel = new javax.swing.JPanel();        groupByChooser = new javax.swing.JComboBox();        groupByLabel = new javax.swing.JLabel();        bugTreeBugDetailsSplitter = new javax.swing.JSplitPane();        bugTreeScrollPane = new javax.swing.JScrollPane();        bugTree = new javax.swing.JTree();        bugDetailsTabbedPane = new javax.swing.JTabbedPane();        bugDescriptionScrollPane = new javax.swing.JScrollPane();        bugDescriptionEditorPane = new javax.swing.JEditorPane();        sourceTextAreaScrollPane = new javax.swing.JScrollPane();        sourceTextArea = new javax.swing.JTextArea();        consoleScrollPane = new javax.swing.JScrollPane();        consoleMessageArea = new javax.swing.JTextArea();        theMenuBar = new javax.swing.JMenuBar();        fileMenu = new javax.swing.JMenu();        newProjectItem = new javax.swing.JMenuItem();        openProjectItem = new javax.swing.JMenuItem();        saveProjectItem = new javax.swing.JMenuItem();        closeProjectItem = new javax.swing.JMenuItem();        jSeparator3 = new javax.swing.JSeparator();        exitItem = new javax.swing.JMenuItem();        viewMenu = new javax.swing.JMenu();        viewConsoleItem = new javax.swing.JCheckBoxMenuItem();        viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem();        fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem();        helpMenu = new javax.swing.JMenu();        aboutItem = new javax.swing.JMenuItem();        setTitle("FindBugs");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                exitForm(evt);            }        });        consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        consoleSplitter.setResizeWeight(1.0);        consoleSplitter.setOneTouchExpandable(true);        consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() {            public void propertyChange(java.beans.PropertyChangeEvent evt) {                consoleSplitterPropertyChange(evt);            }        });        viewPanel.setLayout(new java.awt.CardLayout());        viewPanel.add(emptyPanel, "EmptyPanel");        viewPanel.add(reportPanel, "ReportPanel");        editProjectPanel.setLayout(new java.awt.GridBagLayout());        jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12));        jarFileLabel.setText("Jar file:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(jarFileLabel, gridBagConstraints);        jarNameTextField.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jarNameTextFieldActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0);        editProjectPanel.add(jarNameTextField, gridBagConstraints);        addJarButton.setFont(new java.awt.Font("Dialog", 0, 12));        addJarButton.setText("Add");        addJarButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                addJarButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(addJarButton, gridBagConstraints);        jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12));        jarFileListLabel.setText("Jar Files:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 4;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(jarFileListLabel, gridBagConstraints);        sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12));        sourceDirLabel.setText("Source Dir:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 6;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(sourceDirLabel, gridBagConstraints);        srcDirTextField.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                srcDirTextFieldActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 6;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0);        editProjectPanel.add(srcDirTextField, gridBagConstraints);        addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12));        addSourceDirButton.setText("Add");        addSourceDirButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                addSourceDirButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 6;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(addSourceDirButton, gridBagConstraints);        sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12));        sourceDirListLabel.setText("Source Dirs:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 7;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(sourceDirListLabel, gridBagConstraints);        removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12));        removeJarButton.setText("Remove");        removeJarButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                removeJarButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 4;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(removeJarButton, gridBagConstraints);        removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12));        removeSrcDirButton.setText("Remove");        removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                removeSrcDirButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 7;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(removeSrcDirButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 5;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        editProjectPanel.add(jSeparator1, gridBagConstraints);        browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12));        browseJarButton.setText("Browse");        browseJarButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                browseJarButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(browseJarButton, gridBagConstraints);        browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12));        browseSrcDirButton.setText("Browse");        browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                browseSrcDirButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 6;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(browseSrcDirButton, gridBagConstraints);        editProjectLabel.setBackground(new java.awt.Color(0, 0, 204));        editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24));        editProjectLabel.setForeground(new java.awt.Color(255, 255, 255));        editProjectLabel.setText("Project");        editProjectLabel.setOpaque(true);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        editProjectPanel.add(editProjectLabel, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        editProjectPanel.add(jSeparator2, gridBagConstraints);        findBugsButton.setMnemonic('F');        findBugsButton.setText("Find Bugs!");        findBugsButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                findBugsButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 9;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        editProjectPanel.add(findBugsButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 8;        gridBagConstraints.gridwidth = 4;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        editProjectPanel.add(jSeparator4, gridBagConstraints);        jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1));        jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));        jarFileList.setFont(new java.awt.Font("Dialog", 0, 12));        jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);        jarFileListScrollPane.setViewportView(jarFileList);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 4;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weighty = 0.7;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(jarFileListScrollPane, gridBagConstraints);        sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1));        sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));        sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12));        sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);        sourceDirListScrollPane.setViewportView(sourceDirList);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 7;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weighty = 0.3;        gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);        editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints);        viewPanel.add(editProjectPanel, "EditProjectPanel");        bugTreePanel.setLayout(new java.awt.GridBagLayout());        groupByChooser.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                groupByChooserActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        bugTreePanel.add(groupByChooser, gridBagConstraints);        groupByLabel.setFont(new java.awt.Font("Dialog", 0, 12));        groupByLabel.setText("Group:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 0);        bugTreePanel.add(groupByLabel, gridBagConstraints);        bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);        bugTreeBugDetailsSplitter.setResizeWeight(1.0);        bugTreeBugDetailsSplitter.setOneTouchExpandable(true);        bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() {            public void propertyChange(java.beans.PropertyChangeEvent evt) {                bugTreeBugDetailsSplitterPropertyChange(evt);            }        });        bugTreeScrollPane.setViewportView(bugTree);        bugTreeBugDetailsSplitter.setLeftComponent(bugTreeScrollPane);        bugDescriptionEditorPane.setEditable(false);        bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane);        bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane);        sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180));        sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100));        sourceTextArea.setEditable(false);        sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12));        sourceTextAreaScrollPane.setViewportView(sourceTextArea);        bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane);        bugTreeBugDetailsSplitter.setRightComponent(bugDetailsTabbedPane);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints);        viewPanel.add(bugTreePanel, "BugTree");        consoleSplitter.setTopComponent(viewPanel);        consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100));        consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100));        consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204));        consoleMessageArea.setEditable(false);        consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12));        consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0));        consoleMessageArea.setAutoscrolls(false);        consoleScrollPane.setViewportView(consoleMessageArea);        consoleSplitter.setBottomComponent(consoleScrollPane);        getContentPane().add(consoleSplitter, java.awt.BorderLayout.CENTER);        theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12));        fileMenu.setMnemonic('F');        fileMenu.setText("File");        fileMenu.setFont(new java.awt.Font("Dialog", 0, 12));        newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12));        newProjectItem.setMnemonic('N');        newProjectItem.setText("New Project");        newProjectItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                newProjectItemActionPerformed(evt);            }        });        fileMenu.add(newProjectItem);        openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12));        openProjectItem.setMnemonic('O');        openProjectItem.setText("Open Project");        openProjectItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                openProjectItemActionPerformed(evt);            }        });        fileMenu.add(openProjectItem);        saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12));        saveProjectItem.setMnemonic('S');        saveProjectItem.setText("Save project");        saveProjectItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                saveProjectItemActionPerformed(evt);            }        });        fileMenu.add(saveProjectItem);        closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12));        closeProjectItem.setMnemonic('C');        closeProjectItem.setText("Close Project");        fileMenu.add(closeProjectItem);        fileMenu.add(jSeparator3);        exitItem.setFont(new java.awt.Font("Dialog", 0, 12));        exitItem.setMnemonic('X');        exitItem.setText("Exit");        exitItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                exitItemActionPerformed(evt);            }        });        fileMenu.add(exitItem);        theMenuBar.add(fileMenu);        viewMenu.setMnemonic('V');        viewMenu.setText("View");        viewMenu.setFont(new java.awt.Font("Dialog", 0, 12));        viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12));        viewConsoleItem.setMnemonic('C');        viewConsoleItem.setText("Console");        viewConsoleItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                viewConsoleItemActionPerformed(evt);            }        });        viewMenu.add(viewConsoleItem);        viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12));        viewBugDetailsItem.setMnemonic('D');        viewBugDetailsItem.setSelected(true);        viewBugDetailsItem.setText("Bug Details");        viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                viewBugDetailsItemActionPerformed(evt);            }        });        viewMenu.add(viewBugDetailsItem);        fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12));        fullDescriptionsItem.setMnemonic('F');        fullDescriptionsItem.setText("Full Descriptions");        fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                fullDescriptionsItemActionPerformed(evt);            }        });        viewMenu.add(fullDescriptionsItem);        theMenuBar.add(viewMenu);        helpMenu.setMnemonic('H');        helpMenu.setText("Help");        helpMenu.setFont(new java.awt.Font("Dialog", 0, 12));        aboutItem.setFont(new java.awt.Font("Dialog", 0, 12));        aboutItem.setMnemonic('A');        aboutItem.setText("About");        aboutItem.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                aboutItemActionPerformed(evt);            }        });        helpMenu.add(aboutItem);        theMenuBar.add(helpMenu);        setJMenuBar(theMenuBar);        pack();    }//GEN-END:initComponents