Original Post
I wish to have a hirarchy of directories. In each directory I may have zero or more sub directories, and zero or more strings. Should I use the Tree class? Or should I create my own composite design pattern class? Also, how would I deal with the GUI of this? I can create a dialog in net beans that will contain some buttons. However, I want to present these directories and strings, much like windows explorer presents its file system. That means I need to be able to close and open each directory and to select directories and files, so when I will press one of the buttons of the dialog, it will operate on the last item I selected. Can you help me with this problem? Thanks in advance.