This is a sample folder structure :
mahesh
aaa(folder)
aa(subfolder)
a1(file)
xx(file)
bbb(folder)
bb(subfolder)
b1(file)
yy(file)
ccc(folder)
cc()folder)
c1(file)
ZZ(file)
xxx1(file)
xxx2(file)
Note that the parent directory can contain any sub-directories and any files. How can I get all files from my parent directory ?
Can any one help me in getting files using jfilechooser ?
See
File.listFiles()to get the files in a directory. Call it recursively for each directory. Beware of symbolic links.