FileOutputStream f = new FileOutputStream ("PatchEdit.config"); ObjectOutputStream s = new ObjectOutputStream (f); s.writeObject (deviceList); s.writeObject (prefsDialog.libPath); s.writeObject (prefsDialog.sysexPath); s.writeObject (new Integer (prefsDialog.initPortIn)); s.writeObject (new Integer (prefsDialog.initPortOut)); s.writeObject (new Integer (noteChooserDialog.note)); s.writeObject (new Integer (noteChooserDialog.velocity)); s.writeObject (new Integer (noteChooserDialog.delay)); s.writeObject (new Integer (prefsDialog.masterController)); s.writeObject (new Boolean (prefsDialog.faderEnable)); s.writeObject (new Integer (prefsDialog.faderPort)); s.writeObject (prefsDialog.faderController); s.writeObject (prefsDialog.faderChannel); s.writeObject (new Integer (prefsDialog.lookAndFeel)); s.writeObject (new Integer (prefsDialog.midiPlatform)); s.flush (); s.close (); f.close ();
this.appConfig.store();
    public void savePrefs ()    {        try        {            FileOutputStream f = new FileOutputStream ("PatchEdit.config");            ObjectOutputStream s = new ObjectOutputStream (f);            s.writeObject (deviceList);            s.writeObject (prefsDialog.libPath);            s.writeObject (prefsDialog.sysexPath);            s.writeObject (new Integer (prefsDialog.initPortIn));            s.writeObject (new Integer (prefsDialog.initPortOut));            s.writeObject (new Integer (noteChooserDialog.note));            s.writeObject (new Integer (noteChooserDialog.velocity));            s.writeObject (new Integer (noteChooserDialog.delay));            s.writeObject (new Integer (prefsDialog.masterController));            s.writeObject (new Boolean (prefsDialog.faderEnable));            s.writeObject (new Integer (prefsDialog.faderPort));            s.writeObject (prefsDialog.faderController);            s.writeObject (prefsDialog.faderChannel);            s.writeObject (new Integer (prefsDialog.lookAndFeel));            s.writeObject (new Integer (prefsDialog.midiPlatform));            s.flush ();            s.close ();            f.close ();        } catch(Exception e)        {ErrorMsg.reportError ("Error", "Unable to Save Preferences",e);}    }