JMenu file = new JMenu(java.util.ResourceBundle.getBundle("global").getString("file"));
JMenu file = new JMenu("File");  file.setMnemonic('F');
    public MainMenu(VFSAGUI topLevel, Sidebar guiSide) {        super();                entries = new Hashtable<JMenuItem, MenuID>();                JMenu file = new JMenu(java.util.ResourceBundle.getBundle("global").getString("file"));                /* Men - Datei - */        JMenuItem newFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("new"),                new ImageIcon("images/filenew.png"));                newFile.setAccelerator(KeyStroke.getKeyStroke('N',InputEvent.CTRL_MASK));                JMenuItem openFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("open"),                new ImageIcon("images/fileopen.png"));                openFile.setAccelerator(KeyStroke.getKeyStroke('O',InputEvent.CTRL_MASK));                JMenuItem saveFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("save"),                new ImageIcon("images/filesave.png"));                saveFile.setAccelerator(KeyStroke.getKeyStroke('S',InputEvent.CTRL_MASK));                JMenuItem saveasFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("saveas"),                new ImageIcon("images/filesaveas.png"));        JMenuItem options = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("options"),                new ImageIcon("images/options.png"));                JMenuItem quit = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("quit"),                new ImageIcon("images/exit.png"));                quit.setAccelerator(KeyStroke.getKeyStroke('Q',InputEvent.CTRL_MASK));                entries.put(newFile, MenuID.FILE_NEW);        entries.put(openFile, MenuID.FILE_OPEN);        entries.put(saveFile, MenuID.FILE_SAVE);        entries.put(saveasFile, MenuID.FILE_SAVEAS);        entries.put(options, MenuID.FILE_OPTIONS);        entries.put(quit, MenuID.FILE_QUIT);                file.add(newFile);        file.add(openFile);        file.add(saveFile);        file.add(saveasFile);        file.addSeparator();        file.add(options);        file.addSeparator();        file.add(quit);                add(file);                JMenu algo = new JMenu(java.util.ResourceBundle.getBundle("global").getString("algo"));                JMenuItem algo_lang = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("guessLang"),                new ImageIcon("images/lang.png"));                JMenuItem algo_determ = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("determ"),                new ImageIcon("images/determ.png"));                JMenuItem algo_runvis = new JMenuItem("Laufvisualisierung",                new ImageIcon("images/runvis.png"));                entries.put(algo_runvis, MenuID.ALGO_RUNVIS);        entries.put(algo_lang, MenuID.ALGO_LANG);        entries.put(algo_determ, MenuID.ALGO_DETERM);                algo.add(algo_lang);        algo.add(algo_determ);        algo.add(algo_runvis);                add(algo);                JMenu view_menu = new JMenu(java.util.ResourceBundle.getBundle("global").getString("view"));                JMenuItem view_fitwin = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("fittowindowMenu"),                new ImageIcon("images/fitinwindow.png"));                view_fitwin.setAccelerator(KeyStroke.getKeyStroke('F',InputEvent.CTRL_MASK));                view_menu.add(view_fitwin);                add(view_menu);                entries.put(view_fitwin, MenuID.VIEW_FITWINDOW);                genericHandler = new MenuHandler(topLevel, guiSide, entries);                // registriere fr alle Meneintrge den EventHandler        Enumeration<JMenuItem> menuEnum = entries.keys();                while (menuEnum.hasMoreElements()) {            menuEnum.nextElement().addActionListener(genericHandler);        }            }