| | | | Browse by category |
Article ID: 1050
Last updated: 02 Feb, 2008
Problem
I am using Tree from Blend.J and the application or applet freezes at runtime.
Cause
If you are adding child nodes to the Tree, you are probably using the addSubItem() method to do this.
Action
Use the addChild() method as found under Node instead of addSubItem().
I am using Tree from Blend.J and the application or applet freezes at runtime.
Cause
If you are adding child nodes to the Tree, you are probably using the addSubItem() method to do this.
Action
Use the addChild() method as found under Node instead of addSubItem().
Here is an example of incorrect coding:
// Make 0 and 1 valid image references
myTree.createRootNode(Root Node, 0, 1);
Node myParentNode = myTree.getRoot(0);
myParentNode.addSubItem(Child of Parent Node); // This will freeze the application or applet.
Here is the correct coding:
// Make 0 and 1 valid image references
myTree.createRootNode(Root Node, 0, 1);
Node myParentNode = myTree.getRoot(0);
myParentNode.addChild(new Node(Child of Parent Node, 0, 1)); // This is the method to use for adding child nodes.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 1050
Last updated: 02 Feb, 2008
Revision: 1
Views: 3453
Posted: 10 Jul, 1998 by
Dean J.
Updated: 02 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)