FileFilter type1 = new ExtensionFilter("PatchEdit Library Files (*.patchlib, *.scenelib)", new String[] {".patchlib", ".scenelib"}); fc.addChoosableFileFilter(type1); fc.setFileFilter(type1);
        public void actionPerformed(ActionEvent e) {            CompatibleFileDialog fc = new CompatibleFileDialog();            FileFilter type1 = new ExtensionFilter("PatchEdit Library Files (*.patchlib, *.scenelib)",						   new String[] {".patchlib", ".scenelib"});            fc.addChoosableFileFilter(type1);            fc.setFileFilter(type1);            fc.setCurrentDirectory(new File(AppConfig.getLibPath()));            if (fc.showOpenDialog(PatchEdit.getInstance()) != JFileChooser.APPROVE_OPTION)		return;	    File file = fc.getSelectedFile();	    openFrame(file);        }