JavaFX has a binding API, which provides ways of binding one property to the other. This means that whenever one property's value is changed, the value of the bound property is updated automatically. An example of simple binding:
SimpleIntegerProperty first =new SimpleIntegerProperty(5); //create a...