JMenuItem mi = new JMenuItem(i18n.getString("menuForceIndex")); mi.setMnemonic(i18n.getString("menuForceIndexChar").charAt(0)); mi.addActionListener(this); mi.setActionCommand("forceindex");  menu.add(mi);
    private JMenu createOptionsMenu()    {        JMenu menu = new JMenu(i18n.getString("menuOptions"));        menu.setMnemonic(i18n.getString("menuOptionsChar").charAt(0));                JMenu menuLanguage = new JMenu(i18n.getString("menuLanguage"));        menuLanguage.setMnemonic(i18n.getString("menuLanguageChar").charAt(0));                // Englisch        JMenuItem smi = new JMenuItem(i18n.getString("menuChooseEnglish"));        smi.setMnemonic(i18n.getString("menuChooseEnglishChar").charAt(0));        smi.addActionListener(this);        smi.setActionCommand("chooseEnglisch");        menuLanguage.add(smi);                // German        smi = new JMenuItem(i18n.getString("menuChooseGerman"));        smi.setMnemonic(i18n.getString("menuChooseGermanChar").charAt(0));        smi.addActionListener(this);        smi.setActionCommand("chooseGerman");        menuLanguage.add(smi);                        // French        smi = new JMenuItem(i18n.getString("menuChooseFrench"));        smi.setMnemonic(i18n.getString("menuChooseFrenchChar").charAt(0));        smi.addActionListener(this);        smi.setActionCommand("chooseFrench");        menuLanguage.add(smi);                // Norwegian        smi = new JMenuItem(i18n.getString("menuChooseNorwegian"));        smi.setMnemonic(i18n.getString("menuChooseNorwegianChar").charAt(0));        smi.addActionListener(this);        smi.setActionCommand("chooseNorwegian");        smi.setSelected(true);        menuLanguage.add(smi);                menu.add(menuLanguage);                // mark the current language        int n = 0;        if(uiLanguage.equals("en"))        {          n = 0;        }        else if(uiLanguage.equals("de"))        {          n = 1;        }        else if(uiLanguage.equals("fr"))        {          n = 2;        }        else if(uiLanguage.equals("no"))        {          n = 3;        }        menuLanguage.getMenuComponent(n).setEnabled(false);                return menu;    }