dialog.setLocationRelativeTo(null);
    private void findBugsButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_findBugsButtonActionPerformed        Project project = getCurrentProject();        AnalysisRun analysisRun = new AnalysisRun(project);                // Run the analysis!        RunAnalysisDialog dialog = new RunAnalysisDialog(this, analysisRun);        dialog.setSize(400, 300);        dialog.show();        if (dialog.isCompleted()) {            // Create a navigator tree node for the analysis run            DefaultTreeModel treeModel = (DefaultTreeModel) navigatorTree.getModel();            TreePath treePath = navigatorTree.getSelectionPath();            DefaultMutableTreeNode projectNode = (DefaultMutableTreeNode) treePath.getPath()[1];            DefaultMutableTreeNode analysisRunNode = new DefaultMutableTreeNode(analysisRun);            treeModel.insertNodeInto(analysisRunNode, projectNode, projectNode.getChildCount());                        // Make the new node the currently selected node            TreePath path = new TreePath(new Object[]{rootNode, projectNode, analysisRunNode});            navigatorTree.makeVisible(path);            navigatorTree.setSelectionPath(path);        }    }//GEN-LAST:event_findBugsButtonActionPerformed