Program: 46105
Project: 46105
Buggy source:
private void initMenus(){
  logoutMI=new JMenuItem(bundle.getString("String_Node_Str"));
  logoutMI.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent evt){
      logoutMIActionPerformed(evt);
    }
  }
);
  addToFileMenu(logoutMI,2);
  exitMI=new JMenuItem(bundle.getString("String_Node_Str"));
  exitMI.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent evt){
      exitMIActionPerformed(evt);
    }
  }
);
  addToFileMenu(exitMI,3);
  firstPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
  firstPersonRB.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      cameraChangedActionPerformed(evt);
    }
  }
);
  addToViewMenu(firstPersonRB,0);
  cameraButtonGroup.add(firstPersonRB);
  thirdPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
  thirdPersonRB.setSelected(true);
  thirdPersonRB.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      cameraChangedActionPerformed(evt);
    }
  }
);
  addToViewMenu(thirdPersonRB,1);
  cameraButtonGroup.add(thirdPersonRB);
  frontPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
  frontPersonRB.setToolTipText("String_Node_Str");
  frontPersonRB.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      cameraChangedActionPerformed(evt);
    }
  }
);
  addToViewMenu(frontPersonRB,2);
  cameraButtonGroup.add(frontPersonRB);
  frameRateMenu=new JMenu(bundle.getString("String_Node_Str"));
  JMenuItem fps15=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  JMenuItem fps30=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  JMenuItem fps60=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  JMenuItem fps120=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  JMenuItem fps200=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  frameRateMenu.add(fps15);
  frameRateMenu.add(fps30);
  frameRateMenu.add(fps60);
  frameRateMenu.add(fps120);
  frameRateMenu.add(fps200);
  addToViewMenu(frameRateMenu,4);
  fps15.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      frameRateActionPerformed(evt);
    }
  }
);
  fps30.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      frameRateActionPerformed(evt);
    }
  }
);
  fps60.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      frameRateActionPerformed(evt);
    }
  }
);
  fps120.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      frameRateActionPerformed(evt);
    }
  }
);
  fps200.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      frameRateActionPerformed(evt);
    }
  }
);
  fpsMI=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
  fpsMI.addActionListener(new java.awt.event.ActionListener(){
    public void actionPerformed(    java.awt.event.ActionEvent evt){
      if ((fpsComponent == null) || !fpsComponent.isVisible()) {
        showFPSMeter(true);
      }
 else {
        showFPSMeter(false);
      }
    }
  }
);
  addToWindowMenu(fpsMI,-1);
  HelpSystem helpSystem=new HelpSystem();
  JMenu helpMenu=helpSystem.getHelpJMenu();
  mainMenuBar.add(helpMenu);
}

Fixed version (ground truth):
private void initMenus(){
  SwingUtilities.invokeLater(new Runnable(){
    public void run(){
      logoutMI=new JMenuItem(bundle.getString("String_Node_Str"));
      logoutMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          logoutMIActionPerformed(evt);
        }
      }
);
      addToFileMenu(logoutMI,2);
      exitMI=new JMenuItem(bundle.getString("String_Node_Str"));
      exitMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          exitMIActionPerformed(evt);
        }
      }
);
      addToFileMenu(exitMI,3);
      firstPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
      firstPersonRB.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(firstPersonRB,0);
      cameraButtonGroup.add(firstPersonRB);
      thirdPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
      thirdPersonRB.setSelected(true);
      thirdPersonRB.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(thirdPersonRB,1);
      cameraButtonGroup.add(thirdPersonRB);
      frontPersonRB=new JRadioButtonMenuItem(bundle.getString("String_Node_Str"));
      frontPersonRB.setToolTipText("String_Node_Str");
      frontPersonRB.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(frontPersonRB,2);
      cameraButtonGroup.add(frontPersonRB);
      frameRateMenu=new JMenu(bundle.getString("String_Node_Str"));
      JMenuItem fps15=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      JMenuItem fps30=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      JMenuItem fps60=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      JMenuItem fps120=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      JMenuItem fps200=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      frameRateMenu.add(fps15);
      frameRateMenu.add(fps30);
      frameRateMenu.add(fps60);
      frameRateMenu.add(fps120);
      frameRateMenu.add(fps200);
      addToViewMenu(frameRateMenu,4);
      fps15.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps30.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps60.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps120.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps200.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fpsMI=new JCheckBoxMenuItem(bundle.getString("String_Node_Str"));
      fpsMI.addActionListener(new java.awt.event.ActionListener(){
        public void actionPerformed(        java.awt.event.ActionEvent evt){
          if ((fpsComponent == null) || !fpsComponent.isVisible()) {
            showFPSMeter(true);
          }
 else {
            showFPSMeter(false);
          }
        }
      }
);
      addToWindowMenu(fpsMI,-1);
      HelpSystem helpSystem=new HelpSystem();
      JMenu helpMenu=helpSystem.getHelpJMenu();
      mainMenuBar.add(helpMenu);
    }
  }
);
}