rad = new JMenuItem(res.getString("HELP_ABOUTYOU"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/help.gif"));
rad = new JMenuItem(res.getString("help.about_you"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/help.gif"));
  public mainMenu(JFrame frame2) {    frame = (YAMM)frame2;    try {      InputStream in = new FileInputStream(System.getProperty("user.home") + "/.yamm/.config");      props.load(in);      in.close();    } catch (IOException propsioe) { System.err.println(propsioe); }    try {      res = ResourceBundle.getBundle("org.gjt.fredde.yamm.resources.YAMM", Locale.getDefault());    }    catch (MissingResourceException mre) {      mre.printStackTrace();      System.exit(1);    }    JMenu file = new JMenu(res.getString("FILEMENU"));    JMenuItem rad;    add(file);    // the file menu    rad = new JMenuItem(res.getString("NEW"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/new_mail.gif"));    rad.addActionListener(MListener);    file.add(rad);    rad = new JMenuItem(res.getString("SAVEAS"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/save_as.gif"));    rad.addActionListener(MListener);    file.add(rad);    file.addSeparator();    rad = new JMenuItem(res.getString("EXIT"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/exit.gif"));    rad.addActionListener(MListener);    file.add(rad);    // the edit menu    JMenu edit = new JMenu(res.getString("EDIT"));    add(edit);    rad = new JMenuItem(res.getString("SETTINGS"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/prefs.gif"));    rad.addActionListener(MListener);    edit.add(rad);    rad = new JMenuItem(res.getString("VSOURCE"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/search.gif"));    rad.addActionListener(MListener);    edit.add(rad);    // the help menu    JMenu help = new JMenu(res.getString("HELPMENU"));    add(help);    rad = new JMenuItem(res.getString("HELP_ABOUTYOU"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/help.gif"));    rad.addActionListener(MListener);    help.add(rad);    rad = new JMenuItem(res.getString("HELP_ABOUT"), new ImageIcon("org/gjt/fredde/yamm/images/buttons/help.gif"));    rad.addActionListener(MListener);    help.add(rad);    rad = new JMenuItem(res.getString("LICENSE"), new ImageIcon("org/gjt/fredde/yamm/images/types/text.gif"));    rad.addActionListener(MListener);    help.add(rad);  }