fileMenu.add(Main.recentFileList.getJMenu());
fileMenu.add(new RecentFileMenu());
    private void initFileMenu() {                JMenu fileMenu = new JMenu("File");                fileMenu.add(new NewPlayerAction());                JMenuItem newMovieRecording = new JMenuItem("New Movie Recording");        newMovieRecording.setAccelerator(KeyStroke.getKeyStroke('N', menuShortcutKeyMask | InputEvent.ALT_MASK));                newMovieRecording.setEnabled(false);        fileMenu.add(newMovieRecording);                JMenuItem newAudioRecording = new JMenuItem("New Audio Recording");        newAudioRecording.setAccelerator(KeyStroke.getKeyStroke('N', menuShortcutKeyMask | InputEvent.ALT_MASK | InputEvent.CTRL_MASK));                newAudioRecording.setEnabled(false);        fileMenu.add(newAudioRecording);                fileMenu.addSeparator();                JMenuItem openFile = new JMenuItem("Open File...");        openFile.setAccelerator(KeyStroke.getKeyStroke('O', menuShortcutKeyMask));                openFile.addActionListener(new FileOpener());        fileMenu.add(openFile);                fileMenu.add(new URLOpener());        fileMenu.add(new ImageSequenceOpener(frame));                // XXX Use this to play all movies in a folder in order        JMenuItem openMovieSequence = new JMenuItem("Open Movie Sequence...");                openMovieSequence.setEnabled(false);        fileMenu.add(openMovieSequence);        fileMenu.add(Main.recentFileList.getJMenu());                Action closeAction = new CloseAction(frame);        fileMenu.add(closeAction);                fileMenu.addSeparator();        fileMenu.add(new SaveAction(frame));                 if (frame != null) fileMenu.add(new SaveAsAction(frame));        else fileMenu.add(new SaveAsAction(null));                    JMenuItem revertToSaved = new JMenuItem("Revert to Saved");        revertToSaved.setEnabled(false);        fileMenu.add(revertToSaved);                fileMenu.addSeparator();                JMenuItem share = new JMenuItem("Share...");        share.setAccelerator(KeyStroke.getKeyStroke('S', menuShortcutKeyMask | InputEvent.ALT_MASK));                share.setEnabled(false);        fileMenu.add(share);                JMenuItem export = new JMenuItem("Export...");        export.setAccelerator(KeyStroke.getKeyStroke('E', menuShortcutKeyMask));                export.setEnabled(false);        fileMenu.add(export);                Action exportFramesAction = new ExportFramesAction(frame);        fileMenu.add(exportFramesAction);                fileMenu.addSeparator();                PrinterJob printerJob = PrinterJob.getPrinterJob();        Action pageSetupAction = new PageSetupAction(printerJob);        if (frame == null) pageSetupAction.setEnabled(false);        fileMenu.add(pageSetupAction);        Action printAction = new PrintAction(printerJob, frame);        if (frame == null) printAction.setEnabled(false);        fileMenu.add(printAction);                this.add(fileMenu);            }