Program: 45452
Project: 45452
Buggy source:
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 ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(firstPersonRB,0);
      cameraButtonGroup.add(firstPersonRB);
      thirdPersonRB=new JRadioButtonMenuItem(BUNDLE.getString("String_Node_Str"));
      thirdPersonRB.setSelected(true);
      thirdPersonRB.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(thirdPersonRB,1);
      cameraButtonGroup.add(thirdPersonRB);
      frontPersonRB=new JRadioButtonMenuItem(BUNDLE.getString("String_Node_Str"));
      frontPersonRB.setToolTipText(BUNDLE.getString("String_Node_Str"));
      frontPersonRB.addActionListener(new ActionListener(){
        public void actionPerformed(        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,5);
      fps15.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps30.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps60.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps120.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps200.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fpsMI=new JCheckBoxMenuItem(BUNDLE.getString("String_Node_Str"));
      fpsMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          if ((fpsComponent == null) || !fpsComponent.isVisible()) {
            showFPSMeter(true);
          }
 else {
            showFPSMeter(false);
          }
        }
      }
);
      addToWindowMenu(fpsMI,-1);
      logViewerMI=new JMenuItem(BUNDLE.getString("String_Node_Str"));
      logViewerMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent ae){
          LogViewerFrame.getInstance().setVisible(true);
          LogViewerFrame.getInstance().toFront();
        }
      }
);
      addToHelpMenu(logViewerMI,-1);
    }
  }
);
}

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.setAccelerator(KeyStroke.getKeyStroke('f'));
      firstPersonRB.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(firstPersonRB,0);
      cameraButtonGroup.add(firstPersonRB);
      thirdPersonRB=new JRadioButtonMenuItem(BUNDLE.getString("String_Node_Str"));
      thirdPersonRB.setAccelerator(KeyStroke.getKeyStroke('t'));
      thirdPersonRB.setSelected(true);
      thirdPersonRB.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(thirdPersonRB,1);
      cameraButtonGroup.add(thirdPersonRB);
      frontPersonRB=new JRadioButtonMenuItem(BUNDLE.getString("String_Node_Str"));
      frontPersonRB.setToolTipText(BUNDLE.getString("String_Node_Str"));
      frontPersonRB.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          cameraChangedActionPerformed(evt);
        }
      }
);
      addToViewMenu(frontPersonRB,2);
      cameraButtonGroup.add(frontPersonRB);
      InputMap im=mainMenuBar.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
      im.put(KeyStroke.getKeyStroke('c'),"String_Node_Str");
      im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0),"String_Node_Str");
      ActionMap am=mainMenuBar.getActionMap();
      am.put("String_Node_Str",new AbstractAction(){
        public void actionPerformed(        ActionEvent e){
          cameraButtonGroup.next();
        }
      }
);
      am.put("String_Node_Str",new AbstractAction(){
        public void actionPerformed(        ActionEvent e){
          ViewManager.getViewManager().setCameraController(ViewManager.getDefaultCamera());
        }
      }
);
      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,5);
      fps15.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps30.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps60.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps120.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fps200.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          frameRateActionPerformed(evt);
        }
      }
);
      fpsMI=new JCheckBoxMenuItem(BUNDLE.getString("String_Node_Str"));
      fpsMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent evt){
          if ((fpsComponent == null) || !fpsComponent.isVisible()) {
            showFPSMeter(true);
          }
 else {
            showFPSMeter(false);
          }
        }
      }
);
      addToWindowMenu(fpsMI,-1);
      logViewerMI=new JMenuItem(BUNDLE.getString("String_Node_Str"));
      logViewerMI.addActionListener(new ActionListener(){
        public void actionPerformed(        ActionEvent ae){
          LogViewerFrame.getInstance().setVisible(true);
          LogViewerFrame.getInstance().toFront();
        }
      }
);
      addToHelpMenu(logViewerMI,-1);
    }
  }
);
}