int result = chooser.showDialog(this, "Add entry");
int result = chooseFile(chooser, "Add entry");
    private void browseClasspathEntryButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseClasspathEntryButtonActionPerformed        // Add your handling code here:        JFileChooser chooser = new JFileChooser(currentDirectory);        chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);        chooser.setFileFilter(auxClasspathEntryFileFilter);        chooser.setMultiSelectionEnabled(true);                int result = chooser.showDialog(this, "Add entry");        if (result != JFileChooser.CANCEL_OPTION) {            File[] selectedFileList = chooser.getSelectedFiles();            for (int i = 0; i < selectedFileList.length; ++i) {                String entry = selectedFileList[i].getPath();                addClasspathEntryToProject(entry);            }        }    }//GEN-LAST:event_browseClasspathEntryButtonActionPerformed