I have one variable :
public ObservableValue<Double> postionX;
public ObservableValue<Double> positionY;
postionX = (ObservableValue)myscene.widthProperty();
postionX = (ObservableValue)myscene.heightProperty();
ScrollPane sp = new ScrollPane();
sp.preWidthProperty().bind(DoubleProperty)positionX.getValue()-300);
sp.prefHeightProperty().bind((DoubleProperty)postionY.getValue()-50);
it is not casting to doubleproperty and same problem for observableValues as well.
how to cast , or perform arthimetic operations on these data types? is there any other way ?
Edited by: Bava on Jun 17, 2011 5:50 AM