You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Adrian Mitev <ad...@googlemail.com> on 2007/02/10 10:26:31 UTC

Tree2: Show tree expanded

Hi all! Is there way to show the tree expanded when i show it for the first
time?

Re: Tree2: Show tree expanded

Posted by Varma Dendukuri <vd...@gmail.com>.
You can specify that in the treeState object that u associate for the Tree.

Example code

// This is my Root Node.
DefaultMutableTreeNode root = new DefaultMutableTreeNode(new RootNode());

// I want my root node to be expanded, so just stating that to treeState
treeState.addExpandState(root);

Regards,
Varma


On 2/10/07, Adrian Mitev <ad...@googlemail.com> wrote:
>
> Hi all! Is there way to show the tree expanded when i show it for the
> first time?
>