0
Binding in javaFX
I tried assigning the value of a doublProperry to a variable like this. DoubleProperty x; Pane pp=new Pane(); x.bind(pp.widthProperty.divide(4)); double y=x.getValue(); But it's seems not work cos when I printed the value on screen, (System.out.print(y)) it gives 0(zero)..pls I nid help ASAP. THANKS GUYS
2 Answers
+ 10
You should publish your code at the playground. It's impossible to find a solution without knowing any details.
0
What is the width of the pane? Maybe 0?