concept scene graph in category java

This is an excerpt from Manning's book JavaFX in Action.
JavaFX has two UI toolkits: its own javafx.scene.control library and the javafx. ext.swing wrappers around Java’s Swing. What’s the difference? The Swing wrappers will allow desktop apps to have native look ’n’ feel, but Swing can’t easily be ported to phones and TVs. So JavaFX’s own library will allow greater portability between devices and better harmony with JavaFX’s scene graph.
We’ll be exploring what’s known as the scene graph, the very heart of JavaFX’s graphics functionality. We touched on the scene graph briefly in the last chapter; now it’s time to get better acquainted with it. The scene graph is a remarkably different beast than the Java2D library typically used to write Java graphics, but it’s important to remember that one is not a replacement for the other. Both JavaFX’s scene graph and Java2D provide different means of getting pixels on the screen, and each has its strengths and weaknesses. For slick, colorful visuals the scene graph model has many advantages over the Java2D model—we’ll be seeing exactly why that is in the next section.