This discussion is archived
2 Replies Latest reply: Nov 9, 2007 9:20 PM by 807603 RSS

Find filenames in directory

807603 Newbie
Currently Being Moderated
Is there some way to parse a specific directory and get the names of the files in that directory? I have a folder named FILES that will contain *.xls files. My intent is to have the program parse the FILES directory and display all of the file names in a JOptionPane.showInputDialog() method. I know you can use JFileChooser to select files but I do not want the user to have that freedom. I only want to show the files of a specific directory.

If you have an ideas, I would really appreciate your comment! Thanks!