TreeViews are simply backed by plain old list data. As you add and remove elements to and from the list, the tree view will update automatically. Pivot provides a default branch class called TreeBranch:
http://pivot.apache.org/1.4/docs/api/org/apache/pivot/wtk/content/TreeBranch.html and a default leaf class called TreeNode: http://pivot.apache.org/1.4/docs/api/org/apache/pivot/wtk/content/TreeNode.html This application shows an example of dynamically constructing a tree based on JSON data: http://svn.apache.org/repos/asf/pivot/trunk/tools/src/org/apache/pivot/tools/json/JSONViewer.java Hope this helps, Greg On Feb 15, 2010, at 12:35 AM, Pivot-Steven Dahlin wrote: > Are there any examples available showing the user of a treeview which is > built dynamically? > > Thanks
