O'Reilly logo

JavaFX in Action by Simon Morris

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. Behind the scene graph

This chapter covers

  • Defining a scene graph
  • Animating stuff on screen, with ease
  • Transforming graphics and playing with color
  • Responding to mouse events

In chapter 4 we looked at building a rather traditional UI with Swing. Although Swing is an important Java toolkit for interface development, it isn’t central to JavaFX’s way of working with graphics. JavaFX comes at graphics programming from a very different angle, with a focus more on free-form animation, movement, and effects, contrasting to Swing’s rather rigid widget controls. In this chapter we’ll be taking our first look at how JFX does things, constructing a solid foundation onto which we can build in future chapters with evermore sophisticated and ...

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