[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Prototye JTRee
Hello,
I'm working on prototype code that trees classes using JTree. I'm not
sure what the best and most used method of doing this.
Classes:
Parent -> Child -> ..
Parent
Parent -> Child
These are examples of classes that can be in the tree.
Should I use Vectors?
Vector root = new Vector(); // Master trees
// Lets have 3 parents
Vector p1 = new Vector();
...
root.add(p1);
root.add(p2);
root.add(p3);
// P1 has 5 kids
Vector c1 = new Vectro();
...
p1.add(c1);
p1.add(c2);
Is this the best method to attach objects to a JTRee?
Thanks,
Chris