I am using JTree to build folder tree structure(GUI), I can build it manually if I know proper file structure. I want to implement this structure reading structure specified in text file, which is dynamic. I am bit poor in coding recursion type problems. Please help me
If in text file structure is as shown below
root - 0 LivingBeings - 1 animals - 2 dog - 3 cat - 3 birds - 2 peacock - 3 crow - 3
I need a tree structure like as shown in image
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.