FolderDialog fc2=new FolderDialog (PatchEdit.this, "Choose Import All Directory"); FilenameFilter type1 = new ExtensionFilter ("Sysex Files",".syx"); fc2.setFilenameFilter (type1); fc2.setDirectory (appConfig.getSysexPath()); fc2.show(); if (fc2.getDirectory() == null)
CompatibleFileDialog fc = new CompatibleFileDialog(); fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); if (appConfig.getLibPath() != null) fc.setSelectedFile(new File(appConfig.getLibPath())); fc.showDialog(PatchEdit.this, "Choose Import All Directory"); File file = fc.getSelectedFile(); if (file == null)
        public void actionPerformed (ActionEvent e)        {            try            {	        FolderDialog fc2=new FolderDialog (PatchEdit.this, "Choose Import All Directory");                FilenameFilter type1 = new ExtensionFilter ("Sysex Files",".syx");                fc2.setFilenameFilter (type1);                fc2.setDirectory (appConfig.getSysexPath());		fc2.show();		if (fc2.getDirectory() == null)		  return;                File file = new File(fc2.getDirectory());                                ImportAllDialog sd = new ImportAllDialog (PatchEdit.this,file);                sd.show ();            } catch (Exception ex)            {ErrorMsg.reportError ("Error","Unable to Import Patches",ex);};        }