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');
fileMenu.add(new JSeparator());
JMenuItem exitItem = fileMenu.add(new ExitAction(manager));
exitItem.setAccelerator(KeyStroke.getKeyStroke("alt X"));
exitItem.setMnemonic('x');