UsingBindingClass2
 
Code:

package javafxtemplate1;
//
//textProperty().addListener Listview Label
import java.util.Locale;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.DoubleBinding;
import javafx.beans.binding.StringBinding;
import javafx.beans.binding.StringExpression;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import javafx.scene.layout.Pane;


/**
*
* @author Manas9
*/
public class JavaFXTemplate1 extends Application {

@Override
public void start(Stage primaryStage) throws Exception {
//
Group groot1 = new Group(); double d1;
Label label1 = new Label("l1");
Label label2 = new Label("l2");
Label label3 = new Label("l2");
label1.setLayoutX(10);label1.setLayoutY(20);
label2.setLayoutX(10);label2.setLayoutY(40);
label3.setLayoutX(10);label3.setLayoutY(60);
//perimeter of a circle=2pr
DoubleProperty radius = new SimpleDoubleProperty(19.0);
DoubleProperty perimeter = new SimpleDoubleProperty(0.0);
d1 = 2 ;//* Math.PI ;//* radius.getValue();
StringExpression desc = Bindings.format(Locale.US,
"radius = %.2f, perimeter = %.2f", radius, perimeter);
//commission.bind(Bindings.multiply(Bindings.multiply(math1, math2), Math.PI));
perimeter.bind(Bindings.multiply(Bindings.multiply(radius,d1),Math.PI));
label1.setText(desc.get());
label2.setText("Set New radius");
//
radius.set(30.0);
//label3.setText(desc.getValue());
label3.setText(desc.get());

groot1.getChildren().addAll(label1,label2,label3);
//
Scene scene = new Scene(groot1, 300, 150);
primaryStage.setScene(scene);
primaryStage.setTitle("Manage Style:: Pane");
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}