Hi all, I am trying to develop a tree in the following structure.
I have all those folder names and file names inside a vector.I can check whether these names are associated with a file or a folder using a method. The folders can or cannot have children.The folder content will be obtained from the database each time a folder is expanded(this time also, i get the names of the contents inside the particular folder in a vector and I do the same procedure to check whether the name is associated with a file or folder) .
How to implement this? I made a thorough study from http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#display and referred and modified the examples given there to suit my requirements, unfortunately nothing seems to work for me properly(according to my requirement above). If needed I will post the stupid codes developed by me. Please provide some tips, links or basic codes based on which i can develop the rest. Regards, Anees