JMenuItem view_fitwin = new JMenuItem("An Fenster anpassen");
JMenuItem view_fitwin = new JMenuItem("An Fenster anpassen", new ImageIcon("src/images/fitinwindow.png"));  view_fitwin.setAccelerator(KeyStroke.getKeyStroke('F',InputEvent.CTRL_MASK));
    public MainMenu(VFSAGUI topLevel, Sidebar guiSide) {	super();		entries = new Hashtable<JMenuItem, MenuID>();	JMenu file = new JMenu(java.util.ResourceBundle.getBundle("global").getString("file"));	file.setMnemonic(KeyEvent.VK_D);	/* Men - Datei - */	JMenuItem newFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("new"),					  new ImageIcon("src/images/filenew.png"));	JMenuItem openFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("open"),					   new ImageIcon("src/images/fileopen.png"));	JMenuItem saveFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("save"),					   new ImageIcon("src/images/filesave.png"));	JMenuItem saveasFile = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("saveas"),					     new ImageIcon("src/images/filesaveas.png"));        JMenuItem options = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("options"),                                        new ImageIcon("src/images/options.png"));        	JMenuItem quit = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("quit"),				       new ImageIcon("src/images/exit.png"));	newFile.setMnemonic(KeyEvent.VK_N);	openFile.setMnemonic(KeyEvent.VK_F); 	saveFile.setMnemonic(KeyEvent.VK_S); 	saveasFile.setMnemonic(KeyEvent.VK_A);        options.setMnemonic(KeyEvent.VK_O);	quit.setMnemonic(KeyEvent.VK_B);	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"));        algo.setMnemonic(KeyEvent.VK_M);                JMenuItem algo_lang = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("guessLang"),                            new ImageIcon("src/images/lang.png"));                JMenuItem algo_determ = new JMenuItem(java.util.ResourceBundle.getBundle("global").getString("determ"),                            new ImageIcon("src/images/determ.png"));                algo_lang.setMnemonic(KeyEvent.VK_S);        algo_determ.setMnemonic(KeyEvent.VK_F);                entries.put(algo_lang, MenuID.ALGO_LANG);        entries.put(algo_determ, MenuID.ALGO_DETERM);                algo.add(algo_lang);        algo.add(algo_determ);                add(algo);                JMenu view_menu = new JMenu("Ansicht");                JMenuItem view_fitwin = new JMenuItem("An Fenster anpassen");                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);	}    }