Hi All,

I have a JTree which contains nodes of a class that extends DefaultMutableTreeNode.

I want to programatically add some more nodes to this tree.

These nodes belong to some other class which also extends DefaultMutableTreeNode.

I’m able to add these nodes and they are also shown in the tree.

 

However when I call breadthFirstEnumeration () or depthFirstEnumeration ()

on the root and print the list of tree nodes, these nodes are not shown up.

If I do getChildCount () on the parent of these nodes I get zero.

I have also tried adding these nodes to the TreeModel but still they do not figure in the breadthFirst/DepthFirst search.

 

Can anyone figure out why it is happening and suggest some solution.

 

Thanks and Regards,

Soumitra Dhankar

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

Reply via email to