KeyStroke.getKeyStroke(KeyEvent.VK_E, Constants.KEY_MASK));
KeyStroke.getKeyStroke(KeyEvent.VK_R, Constants.KEY_MASK | InputEvent.SHIFT_MASK));
   JMenuBar makeMenuBar()   {      JMenuBar menubar;      JMenuItem menuitem;      JMenu fileMenu;      JMenu renderMenu;      JMenu helpMenu;      // Make the File Menu      fileMenu = new JMenu(MessageStrings.getString("Evolvo.File_15")); //$NON-NLS-1$      fileMenu.setMnemonic(KeyEvent.VK_F);      // Save menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Save_Genotype_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_S);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_S, Constants.KEY_MASK));      menuitem.addActionListener(this);      fileMenu.add(menuitem);      // Load menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Load_Genotype_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_L);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_L, Constants.KEY_MASK));      menuitem.addActionListener(this);      fileMenu.add(menuitem);      fileMenu.addSeparator();      // Display      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Display_Genotype_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_D);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_D, Constants.KEY_MASK));      menuitem.addActionListener(this);      fileMenu.add(menuitem);      // render saved genotype menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Render_Saved_Genotype_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_E);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_E, Constants.KEY_MASK));      menuitem.addActionListener(this);      fileMenu.add(menuitem);      fileMenu.addSeparator();      // Display system console      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Display_System_Console_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_C);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_C, Constants.KEY_MASK));      menuitem.addActionListener(this);      fileMenu.add(menuitem);      if (!Constants.isMac || true) // disable mac menu for now      {         // On Mac, these are handled elsewhere         fileMenu.addSeparator();         // Preferences menu item         menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Preferences_Menu")); //$NON-NLS-1$         menuitem.setMnemonic(KeyEvent.VK_P);         menuitem.addActionListener(this);         fileMenu.add(menuitem);         // Exit menu item         menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Exit_Menu")); //$NON-NLS-1$         menuitem.setMnemonic(KeyEvent.VK_X);         menuitem.setAccelerator(            KeyStroke.getKeyStroke(KeyEvent.VK_X, Constants.KEY_MASK));         menuitem.addActionListener(this);         fileMenu.add(menuitem);      }      else      {         try         {            Class macHandlerClass =               Class.forName("org.maloi.evolvo.gui.MacMenu"); //$NON-NLS-1$            Constructor macHandlerConstructor =               macHandlerClass.getConstructor(                  new Class[] { ActionListener.class });            macHandler =               macHandlerConstructor.newInstance(new Object[] { this });         }         catch (Exception e)         {            e.printStackTrace();         }      }      // Make Render Menu      renderMenu = new JMenu(MessageStrings.getString("Evolvo.Render_Menu")); //$NON-NLS-1$      renderMenu.setMnemonic(KeyEvent.VK_R);      // New Generation menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.New_Generation_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_N);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_N, Constants.KEY_MASK));      menuitem.addActionListener(this);      renderMenu.add(menuitem);      renderMenu.addSeparator();      // Render Image menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Render_Image_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_R);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_R, Constants.KEY_MASK));      menuitem.addActionListener(this);      renderMenu.add(menuitem);      // Make stop menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Stop_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_T);      menuitem.setAccelerator(         KeyStroke.getKeyStroke(KeyEvent.VK_T, Constants.KEY_MASK));      menuitem.addActionListener(this);      renderMenu.add(menuitem);      // Make Render Menu      helpMenu = new JMenu(MessageStrings.getString("Evolvo.Help_Menu")); //$NON-NLS-1$      helpMenu.setMnemonic(KeyEvent.VK_H);      if (!Constants.isMac)      {         // On Macs, this is handled elsewhere...         // About Evolvo menu item         menuitem = new JMenuItem(MessageStrings.getString("Evolvo.About_Evolvo_Menu")); //$NON-NLS-1$         menuitem.setMnemonic(KeyEvent.VK_A);         menuitem.setAccelerator(            KeyStroke.getKeyStroke(KeyEvent.VK_A, Constants.KEY_MASK));         menuitem.addActionListener(this);         helpMenu.add(menuitem);         helpMenu.addSeparator();      }      // GPL License menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.GPL_License_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_G);      menuitem.addActionListener(this);      helpMenu.add(menuitem);      // Warranty Info menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Warranty_Information_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_W);      menuitem.addActionListener(this);      helpMenu.add(menuitem);      // Redistribution Info menu item      menuitem = new JMenuItem(MessageStrings.getString("Evolvo.Redistribution_Information_Menu")); //$NON-NLS-1$      menuitem.setMnemonic(KeyEvent.VK_R);      menuitem.addActionListener(this);      helpMenu.add(menuitem);      menubar = new JMenuBar();      menubar.add(fileMenu);      menubar.add(renderMenu);      menubar.add(helpMenu);      return menubar;   }