Chapter 9. Data Binding

Binding is one of the most important, powerful and useful features of JavaFX; it can simplify your code to a great extent. In this chapter, we will start with basic binding concepts and proceed toward more sophisticated binding, with appropriate examples.

What Does Binding Mean?

In general terms, binding normally means sticking one object firmly to another, forming a bond, say by tying with a rope. After the objects are bound, anything you do with one of the objects will impact the other. Displacing one of the objects, for example, will displace the other. The definition in JavaFX is on similar lines. It's the ability to create a direct and immediate relationship between two variables, where a change to one variable would ...

Get Beginning JavaFX™ now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.