TreeNode.insertNode

Overview | Methods | This Package | All Packages

TreeNode.insertNode

Inserts the specified node as a child of this node at the specified position.

Syntax

public void insertNode( int index, TreeNode node )

Parameters

index

The zero-based position where you want to insert the child node into this node. If this number is less than zero, the child node is inserted at the top of the node. If this number is greater than the number of child nodes this node currently contains, the child node is inserted at the bottom of this node.

node

A TreeNode object that represents the child node that you want insert into this node.