Yes, you can programmatically create instances of 
org.apache.pivot.wtk.content.TreeNode or TreeBranch as well.

On Aug 6, 2010, at 5:04 PM, Yunlong Zhao wrote:

> Hi All,
>  
> Is there a way to generate a TreeView which has nested TreeBranch dynamically 
> in Java like the following static TreeView?
>  
> <TreeBranch  xmlns="org.apache.pivot.wtk.content">
>       <TreeBranch text="Branch1" icon="images/gear-green.gif">
>             <TreeBranch text="Branch2" icon="images/folder-open.png" >
>                   <TreeNode text="Tree node" icon="images/bridge.gif"/>
>             </TreeBranch>
>       </TreeBranch>
> </TreeBranch>
>  
> Thanks,
>  
> Yunlong

Reply via email to