menuLib.add (new JSeparator ()); newPerformanceAction=new NewPerformanceAction(); menuLib.add(newPerformanceAction);  transferPerformanceAction=new TransferPerformanceAction(); menuLib.add(transferPerformanceAction);
    protected JMenuBar createMenus ()    {        JMenuBar menuBar = new JMenuBar ();        JMenu menuLib = new JMenu ("Library");        menuLib.setMnemonic (KeyEvent.VK_L);                NewAction newAction=new NewAction ();        menuLib.add (newAction);        menuLib.getItem (menuLib.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_N, KeyEvent.CTRL_MASK));                OpenAction openAction=new OpenAction ();        menuLib.add (openAction);        menuLib.getItem (menuLib.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_O, KeyEvent.CTRL_MASK));                saveAction=new SaveAction ();        menuLib.add (saveAction);        menuLib.getItem (menuLib.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_S, KeyEvent.CTRL_MASK));                menuSaveAs = new JMenuItem ("Save As");        menuSaveAs.setMnemonic (KeyEvent.VK_A);        menuSaveAs.addActionListener (new ActionListener ()        {            public void actionPerformed (ActionEvent e)            {                saveFrameAs ();            }        });        menuSaveAs.setEnabled (false);        menuLib.add (menuSaveAs);                menuLib.add (new JSeparator ());                sortAction=new SortAction ();        menuLib.add (sortAction);                searchAction=new SearchAction ();        menuLib.add (searchAction);                dupAction=new DeleteDuplicatesAction ();        menuLib.add (dupAction);        menuLib.add (new JSeparator ());        ExitAction exitAction=new ExitAction ();        menuLib.add (exitAction);        menuBar.add (menuLib);                JMenu menuPatch = new JMenu ("Patch");        menuPatch.setMnemonic (KeyEvent.VK_P);        copyAction=new CopyAction ();        menuPatch.add (copyAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_C, KeyEvent.CTRL_MASK));        cutAction=new CutAction ();        menuPatch.add (cutAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_X, KeyEvent.CTRL_MASK));        pasteAction=new PasteAction ();        menuPatch.add (pasteAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_V, KeyEvent.CTRL_MASK));        deleteAction=new DeleteAction ();        menuPatch.add (deleteAction);        menuPatch.add (new JSeparator ());        importAction=new ImportAction ();        menuPatch.add (importAction);        exportAction=new ExportAction ();        menuPatch.add (exportAction);        importAllAction=new ImportAllAction ();        menuPatch.add (importAllAction);        menuPatch.add (new JSeparator ());        sendAction=new SendAction ();        menuPatch.add (sendAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_T, KeyEvent.CTRL_MASK));                storeAction=new StoreAction ();        menuPatch.add (storeAction);        receiveAction=new GetAction();        menuPatch.add(receiveAction);                     // phil@muqus.com        menuPatch.add (new JSeparator ());        playAction=new PlayAction ();        menuPatch.add (playAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_P, KeyEvent.CTRL_MASK));        editAction=new EditAction ();        menuPatch.add (editAction);        menuPatch.getItem (menuPatch.getItemCount ()-1).setAccelerator (        KeyStroke.getKeyStroke (KeyEvent.VK_E, KeyEvent.CTRL_MASK));        menuPatch.add (new JSeparator ());        crossBreedAction=new CrossBreedAction ();        menuPatch.add (crossBreedAction);        newPatchAction=new NewPatchAction ();        menuPatch.add (newPatchAction);        extractAction=new ExtractAction ();        menuPatch.add (extractAction);        menuBar.add (menuPatch);                JMenu menuConfig = new JMenu ("Config");        menuConfig.setMnemonic (KeyEvent.VK_C);        JMenuItem menuSynths = new JMenuItem ("Synths");        menuSynths.setMnemonic (KeyEvent.VK_S);        menuSynths.addActionListener (new ActionListener ()        {            public void actionPerformed (ActionEvent e)            {                SynthConfigDialog scd= new SynthConfigDialog (PatchEdit.this);                scd.show ();            }        }        );        menuConfig.add (menuSynths);        PrefsAction prefsAction=new PrefsAction ();        menuConfig.add (prefsAction);        NoteChooserAction noteChooserAction=new NoteChooserAction ();        menuConfig.add (noteChooserAction);        MonitorAction monitorAction=new MonitorAction ();        menuConfig.add (monitorAction);        menuBar.add (menuConfig);                JMenu menuHelp = new JMenu ("Help");        menuHelp.setMnemonic (KeyEvent.VK_H);        JMenuItem menuAbout = new JMenuItem ("About");        menuAbout.setMnemonic (KeyEvent.VK_A);                 menuAbout.addActionListener (new ActionListener ()        {            public void actionPerformed (ActionEvent e)            {                JOptionPane.showMessageDialog (null, "JSynthLib Version 0.17\nCopyright (C) 2000-01 Brian Klock et al.\nSee the file 'LICENSE.TXT' for more info","About JSynthLib", JOptionPane.INFORMATION_MESSAGE);return;            }        }        );        menuHelp.add (menuAbout);        docsAction = new DocsAction();	menuHelp.add(docsAction);        menuBar.add (menuHelp);                menuPatchPopup=new JPopupMenu ();        menuPatchPopup.add (playAction);        menuPatchPopup.add (editAction);        menuPatchPopup.add (new JSeparator ());        menuPatchPopup.add (storeAction);        menuPatchPopup.add (sendAction);        menuPatchPopup.add (new JSeparator ());        menuPatchPopup.add (cutAction);        menuPatchPopup.add (copyAction);        menuPatchPopup.add (pasteAction);                JButton b;        toolBar = new JToolBar ();        toolBar.setPreferredSize (new Dimension (500, 35));        toolBar.setFloatable (true);        b=toolBar.add (newAction);        b.setToolTipText ("New Library");        b.setIcon (loadIcon ("images/New24.gif"));        b.setText (null);        b=toolBar.add (openAction);        b.setToolTipText ("Open Library");        b.setIcon (loadIcon ("images/Open24.gif"));        b.setText (null);        b=toolBar.add (saveAction);        b.setToolTipText ("Save Library");        b.setIcon (loadIcon ("images/Save24.gif"));        b.setText (null);        toolBar.addSeparator ();        b=toolBar.add (copyAction);        b.setToolTipText ("Copy Patch");        b.setIcon (loadIcon ("images/Copy24.gif"));        b.setText (null);        b=toolBar.add (cutAction);        b.setToolTipText ("Cut Patch");        b.setIcon (loadIcon ("images/Cut24.gif"));        b.setText (null);        b=toolBar.add (pasteAction);        b.setToolTipText ("Paste Patch");        b.setIcon (loadIcon ("images/Paste24.gif"));        b.setText (null);        b=toolBar.add (importAction);        b.setToolTipText ("Import Patch");        b.setIcon (loadIcon ("images/Import24.gif"));        b.setText (null);        b=toolBar.add (exportAction);        b.setToolTipText ("Export Patch");        b.setIcon (loadIcon ("images/Export24.gif"));        b.setText (null);        toolBar.addSeparator ();        b=toolBar.add (playAction);        b.setToolTipText ("Play Patch");        b.setIcon (loadIcon ("images/Volume24.gif"));        b.setText (null);        b=toolBar.add (storeAction);        b.setToolTipText ("Store Patch");        b.setIcon (loadIcon ("images/ComposeMail24.gif"));        b.setText (null);        b=toolBar.add (editAction);        b.setToolTipText ("Edit Patch");        b.setIcon (loadIcon ("images/Edit24.gif"));        b.setText (null);        toolBar.addSeparator ();        NextFaderAction nextFaderAction = new NextFaderAction ();        b=toolBar.add (nextFaderAction);        b.setToolTipText ("Go to Next Fader Bank");        b.setIcon (loadIcon ("images/Forward24.gif"));        b.setText (null);                        getContentPane ().add (toolBar,BorderLayout.NORTH);        toolBar.setVisible (true); //necessary as of kestrel                return menuBar;    }