List of usage examples for javafx.beans.binding StringExpression get
T get();
From source file:Main.java
public static void main(String[] args) { IntegerProperty x1 = new SimpleIntegerProperty(0); IntegerProperty y1 = new SimpleIntegerProperty(0); final NumberBinding area = x1.multiply(y1).divide(2.0D); StringExpression output = Bindings.format("For A(%d,%d), the area is %3.1f", x1, y1, area); x1.set(0);//from w ww. jav a 2s . c o m y1.set(0); System.out.println(output.get()); x1.set(10); y1.set(110); System.out.println(output.get()); }