Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

show the selected file and folder in tree structure, with checkbox and the checkbox should be only for root elements not for all



Dear all,

By using JFileChoor I am able to select file and folders, Getting JList with File Objects and I am showing it with checkbox. Now my requirement is like I want to show the selected file and folder in tree structure, with checkbox and the checkbox should be only for root elements not for all child elements. Please help me as soon as possible, for me its very urgent.

Like if I selected folders ABC and PQR and file XYZ which containt sub folders and few files
now on UI It should be display

Checkbox1 ABC--
--SubFolders
. --SubFolder
. --Files
--Files
Checkbox2 PQR--
--SubFolders
. --SubFolder
. --Files
--Files
chechbox3 XYZ

Regards,
Anand