I am trying to make a JTree fetching my userObejct(a Java Bean ) from the database. I have around 3850 records consisting of following variables
I have wrapped this and sent this to the client in a hashmap.
Currently i am making my JTree for 2 levels and on subsequent clicks loading data as required.
Now I have a serious concern, I want to use the breathFirst of teh root node. In my current scenario it returns only three nodes which are basically its children.
But I want it to give the entire fetch I have made from
How can I built the tree in the beginning of loading in one shot. That is all the instances of DefaultMutableTreeNode class are built in one shot in the begging.
Thanx in advance. If I am not clear do ask me for the same.