So I ventured into the Java source… The DefaultTreeModel uses a HashTable, hence the un-orderdness.  I was able to create a specialize TreeModel using a Vector that maintains child ordering.

 


From: Combinational Logic [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 24, 2006 4:26 AM
To: users@cocoon.apache.org
Subject: Tree Widget, child ordering

 

For the Tree Widget, I’m having some trouble with node ordering under a flowscript-built DefaultTreeModel.  The ordering does not seem to be correlated with the key or the order in which nodes are added.  I’m not sure if this is to be expected or if I’m doing something wrong. 

 

Thanks,

  CL

Reply via email to