• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Show the selected file and folder in tree structure with checkbox and the checkbox should be only..

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Example : For Example, I selected folders ABC and PQR which containt sub folders and few files
now on UI It should be display like :

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



Regards,
Shweta
 
shweta raghuwanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

I Just Now Created a Image with the Expected Structure.
I hope it will be help you guys to understand the problem.

Regards,
Anand
Filename: Expected-Structure.bmp
File size: 131 Kbytes
 
Sheriff
Posts: 22805
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

shweta raghuwanshi wrote:Please help me as soon as possible, for me
its very urgent.


Please EaseUp. There is no such thing as urgent around here.

Are you already able to create the tree without the check boxes? Are you able, after having searched for solutions, to create the tree with check boxes for each node?
 
shweta raghuwanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I am able to create the Tree Structure with check box with each Nodes. But I am not able to create it as per Pic I have posted
 
shweta raghuwanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am Apologized for mentioning the Urgency. I am sorry for this unconscious behavior. I will try to improve myself for the same.

Regards,
Anand
 
On top of spaghetti all covered in cheese, there was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic