Showing vs. Selecting Nodes

The TreeNode class has an ensureVisible method that ensures the node is visible by expanding parent nodes as needed and scrolling the node into view if necessary. It also has a select method that shows the node and selects it. This sample demonstrates the difference between selecting and showing nodes.