on 12-22-2006 1:02 PM
Hello everyone,
I seem to have a slight problem with showing a tree expanded. Basically what happens is when I open the panel the node i want selected seems to have actually been selected ( subclass.tree.setSelectionPath(path) ) but the tree isn't 'shown' at that expanded state meaning i can not see it's opened to that node i only know it is cause of the data shown in a table (different data is shown depending on the node selected) i can expand the tree manually but in this case I want the tree to come up directly in that state.
could anyone give me a clue as to how i should go around this please?
i use subclass.tree.expandPath(path) and tree.expandPath(path) and i've tried calling tree.fireTreeExpanded(path) and of course tree.makeVisible(path) or subclass.tree.makeVisible(path) but nothing seems to work
thanks in advance for the help, i just can't seem to get my head around it
Hi Alex,
Is this Swing, AWT, SWT or webdynpro ?
Regards,
Ashwani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwani thanks for your reply,
unfortunately the selected node is not a problem (from what i can see) the path i've got seems to be correct (i print it out and check it several times in the code) and the data which should be displayed when the node is selected is displayed, the problem is that the tree is not expanded so that specific node is visible and i don't understand why since i tell it to expand to that specific path again.
Also (I don't know if this will help) but after i've called: <b>tree.expandPath(path)</b>
when I call <b>tree.isExpanded(path)</b> the result is <b>false</b> and I don't understand why it won't expand the tree to that path especially since the selection works.
I apreciate the help,
thanks agian for trying i'm open to all ideas you've got
Message was edited by:
Alex Stamatopoulos
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.