O'Reilly logo

Learn JavaFX 8: Building User Experience and Interfaces with Java 8 by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

Making Scenes

In this chapter, you will learn:

  • What a scene and a scene graph are in a JavaFX application
  • About different rendering modes of a scene graph
  • How to set the cursor for a scene
  • How to determine the focus owner in a scene
  • How to use the Platform and HostServices classes

What Is a Scene?

A scene represents the visual contents of a stage. The Scene class in the javafx.scene package represents a scene in a JavaFX program. A Scene object is attached to, at the most, one stage at a time. If an already attached scene is attached to another stage, it is first detached from the previous stage. A stage can have, at the most, one scene ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required