int rc = chooseFile(chooser, "Add Jar file");
int rc = chooseFile(chooser, "Add archive or directory");
    private void browseJarButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseJarButtonActionPerformed	JFileChooser chooser = createFileChooser();        FileFilter filter = new FileFilter() {            public boolean accept(File file) { return file.isDirectory() || file.getName().endsWith(".jar")							|| file.getName().endsWith(".class"); }            public String getDescription() { return "Jar files (*.jar)"; }        };        chooser.setFileFilter(filter);        chooser.setMultiSelectionEnabled(true);        chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);        	int rc = chooseFile(chooser, "Add Jar file");        if (rc == JFileChooser.APPROVE_OPTION) {            File[] selectedFileList = chooser.getSelectedFiles();            for (int i = 0; i < selectedFileList.length; ++i) {                String entry = selectedFileList[i].getPath();                addJarToProject(entry);            }        }    }//GEN-LAST:event_browseJarButtonActionPerformed