JMenu menuWindow = desktop.createWindowMenu();
JMenu menuWindow = JSLDesktop.createWindowMenu();
    static JMenuBar createMenuBar() {	JMenuItem mi;        HashMap mnemonics = new HashMap();        int mask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();        JMenuBar menuBar = new JMenuBar();	// create "Library" Menu        JMenu menuLib = new JMenu("Library");	mnemonics.put(menuLib, new Integer(KeyEvent.VK_L));	mi = menuLib.add(newAction);	mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, mask));        menuLib.add(newSceneAction);        mi = menuLib.add(openAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, mask));        mi = menuLib.add(saveAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, mask));        menuLib.add(saveAsAction);        menuLib.addSeparator();        menuLib.add(transferSceneAction);        menuLib.addSeparator();        menuLib.add(sortAction);        menuLib.add(searchAction);        menuLib.add(dupAction);        if (!MacUtils.isMac()) {	    menuLib.addSeparator();	    menuLib.add(exitAction);	}	menuBar.add(menuLib);	// create "Patch" Menu        JMenu menuPatch = new JMenu("Patch");	mnemonics.put(menuPatch, new Integer(KeyEvent.VK_P));        mi = menuPatch.add(copyAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_COPY, 0));        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, mask));        mi = menuPatch.add(cutAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_CUT, 0));        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, mask));        mi = menuPatch.add(pasteAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_PASTE, 0));        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, mask));        mi = menuPatch.add(deleteAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));        menuPatch.addSeparator();        menuPatch.add(importAction);        menuPatch.add(exportAction);        menuPatch.add(importAllAction);        menuPatch.addSeparator();        mi = menuPatch.add(sendAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, mask));        menuPatch.add(sendToAction);        menuPatch.add(storeAction);        menuPatch.add(receiveAction); // phil@muqus.com        menuPatch.addSeparator();        mi = menuPatch.add(playAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, mask));        mi = menuPatch.add(editAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_E, mask));        menuPatch.addSeparator(); 	menuPatch.add(reassignAction);        menuPatch.add(crossBreedAction);        menuPatch.add(newPatchAction);        menuPatch.add(extractAction);        menuBar.add(menuPatch);	// create "Window" menu	JMenu menuWindow = desktop.createWindowMenu();	menuBar.add(menuWindow);	// create "Help" menu        JMenu menuHelp = new JMenu("Help");	mnemonics.put(menuHelp, new Integer(KeyEvent.VK_H));	mi = menuHelp.add(docsAction);        mi.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_HELP, 0));	if (!MacUtils.isMac())	    menuHelp.add(aboutAction);        menuBar.add(menuHelp);	// set keyboard short cut	if (!MacUtils.isMac())	    setMnemonics(mnemonics);        return menuBar;    }