Working with the JavaFX Scene Graph

The individual items held within the JavaFX scene graph are known as nodes. Each node is classified as either a branch node (meaning that it can have children), or a leaf node (meaning that it cannot have children). The first node in the tree is always called the root node, and it never has a parent. See a general inheritance diagram in Figure 1.

Figure 1 Root, Branch, and Leaf Nodes

  1. Creating a Scene with Root Node Only
  2. Adding a Leaf Node
  3. Animating the Scene

Reference

Working with the JavaFX Scene Graph


Maintained by John Loomis, last updated 4 March 2018