Connecting Pieces – Binding

Dynamically sharing information between UI elements is a big part of an application. We are all used to handling dynamic updates in Java through established means such as listeners or event queues, but JavaFX brought a new option, the Binding API, to directly bind components' properties together.

In this chapter, we will study how the JavaFX Binding API greatly simplifies communication between any JavaFX components—nodes, controls, FX collections, animation, media, and more.

In this chapter, we'll cover the following topics:

  • Binding basics and its benefits over regular listeners
  • Binding operations 
  • User-defined or custom bindings
  • Binding collections

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.