fileMenu.setMnemonic('F');
JMenuItem openItem = fileMenu.add(new OpenAction(manager));
openItem.setAccelerator(KeyStroke.getKeyStroke("control O"));
openItem.setMnemonic('O');
JMenu recentMenu = new JMenu("Open Recent");
recentMenu.addMenuListener(new RecentMenu(manager, recentMenu));
JMenuItem recentItem = fileMenu.add(recentMenu);
recentItem.setMnemonic('R');
JMenuItem closeItem = fileMenu.add(new CloseAction(manager));
closeItem.setMnemonic('C');