FilenameFilter type1 = new ExtensionFilter ("Sysex Files",
FilenameFilter type1 = new ExtensionFilter ("Sysex Files (*.syx, *.mid)",
        public void actionPerformed (ActionEvent e)        {            FileDialog fc2=new FileDialog (PatchEdit.this);	    fc2.setMode(fc2.LOAD);            FilenameFilter type1 = new ExtensionFilter ("Sysex Files",						    new String[]{".syx"								 ,".mid"});	    // core.ImportMidiFile extracts Sysex Messages from MidiFile            fc2.setDirectory ( appConfig.getSysexPath());            fc2.setFilenameFilter (type1);	    fc2.show();	    if (fc2.getFile() == null)	      return;	    File file = new File(fc2.getDirectory(), fc2.getFile());                try                {                    if (desktop.getSelectedFrame ()==null)                    {ErrorMsg.reportError ("Error","Library to Import Patch\n into Must be in Focus");                    }                    else                        ((PatchBasket)desktop.getSelectedFrame ()).ImportPatch (file);                } catch (IOException ex)                {ErrorMsg.reportError ("Error","Unable to Load Sysex Data",ex);}            };