analysisMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); editMenu.setText("Edit"); editMenu.setFont(new java.awt.Font("Dialog", 0, 12)); editMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { editMenuActionPerformed(evt); } });  selectAllMenuItem.setText("Select All"); selectAllMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); selectAllMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selectAllItemActionListener(evt); } });  editMenu.add(selectAllMenuItem);  copyMenuItem.setText("Copy"); copyMenuItem.setFont(new java.awt.Font("Dialog", 0, 12)); copyMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { copyMenuItemActionPerformed(evt); } });  editMenu.add(copyMenuItem);  analysisMenuBar.add(editMenu);  setJMenuBar(analysisMenuBar);
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        errorLabel = new javax.swing.JLabel();        errorMessageScrollPane = new javax.swing.JScrollPane();        errorMessageTextArea = new javax.swing.JTextPane();        jSeparator1 = new javax.swing.JSeparator();        leftSpacer = new javax.swing.JLabel();        rightSpacer = new javax.swing.JLabel();        okButton = new javax.swing.JButton();        getContentPane().setLayout(new java.awt.GridBagLayout());        setTitle("Analysis Errors");        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosing(java.awt.event.WindowEvent evt) {                closeDialog(evt);            }        });        errorLabel.setFont(new java.awt.Font("Dialog", 0, 12));        errorLabel.setText("Errors occured during the analysis:");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.insets = new java.awt.Insets(6, 6, 3, 0);        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        getContentPane().add(errorLabel, gridBagConstraints);        errorMessageTextArea.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));        errorMessageTextArea.setEditable(false);        errorMessageScrollPane.setViewportView(errorMessageTextArea);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.insets = new java.awt.Insets(4, 6, 4, 6);        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        getContentPane().add(errorMessageScrollPane, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        getContentPane().add(jSeparator1, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.weightx = 0.5;        getContentPane().add(leftSpacer, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 3;        gridBagConstraints.weightx = 0.5;        getContentPane().add(rightSpacer, gridBagConstraints);        okButton.setMnemonic('O');        okButton.setText("OK");        okButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                okButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 3;        gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0);        getContentPane().add(okButton, gridBagConstraints);        pack();    }//GEN-END:initComponents