문제

I have a VBox with elements and one Line(javafx). I want the line's height to be same as that of the VBox. These elements are put inside a Hbox and I have many such Hbox's.

The problem is vbox.getHeight() returns me zero unless I have put the whole thing inside the scene graph.

Any alternatives to solve this ?

도움이 되었습니까?

해결책

You could bind the height of the line to the heightProperty of the VBox.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top