JSLDesktop.setupInitialMenuBar(createToolBar()); if (MacUtils.isMac()) initForMac(exitAction, prefsAction, aboutAction);
JSLDesktop.setupInitialMenuBar(Actions.createToolBar());
    public PatchEdit() {	// Load synth database (synthdrivers.properties)	devConfig = new DevicesConfig();	// Load config file (JSynthLib.properties).	appConfig = new AppConfig();        boolean loadPrefsSuccessfull = appConfig.loadPrefs();	// define event actions	createActions();	// Set up the GUI.	JSLDesktop.getInstance();	JSLDesktop.setupInitialMenuBar(createToolBar());	if (MacUtils.isMac())	    initForMac(exitAction, prefsAction, aboutAction);	// Show dialog for the 1st invokation.	//This is no longer normal. Maybe we shouldn't save prefs if this happens (could be difficult)        if (!loadPrefsSuccessfull)            ErrorMsg.reportError		("Error",		 "Unable to load user preferences. Defaults loaded instead.");	// popup menu for Library window, etc.	menuPatchPopup = createPopupMenu();	// set up Preference Dialog Window	prefsDialog = new PrefsDialog(JSLDesktop.getSelectedWindow(), appConfig);        //Set up a silly little dialog we can pop up for the user to        //gawk at while we do time consuming work later on.        waitDialog = new WaitDialog(JSLDesktop.getSelectedWindow());        // Start pumping MIDI information from Input --> Output so the        // user can play a MIDI Keyboard and make pretty music	masterInEnable(appConfig.getMasterInEnable());    }