Hi all,
I'm working on the example at
http://java.sun.com/docs/books/tutorial/uiswing/examples/components/GenealogyExampleProject/src/components/GenealogyExample.java
I wanted to customize it in a way the data are pulled from a table instead (folder_id, folder_name, parent_id[foreign key to determine parent] .
Here is my code
If I hardcode it as Person a1 = new Person("Jack (great-granddaddy)"); , it works fine. However, I wanted to put it in a loop, with the variable i :-
How can I make the variable i and the "a" to be combined together? In PHP, we usually combine them with a "." , eg "a".$i;
Thanks
Any other example on creating trees from database is greatly appreciated too. Thanks in advance