2013-08-26 2 views
1

BorderPane의 Center, Top, Left, Right, Bottom 컴퍼넌트의 사이즈를 설정하고 싶다. 나는 당신이 BorderPane의 왼쪽면의 크기를 얻을 수 및 크기를 설정하는 방법 예를 들어BorderPane 컴퍼넌트의 사이즈를 설정한다

BorderPane() mainpane = new BorderPane(); 
mainPane.getBottom().prefWidth(sizeX); 

:

enter image description here

지금까지 나는이 발견?

답변

1

BorderPane의 "Left"는 사용자가 설정 한 것이므로 크기는 설정 한대로입니다.

예 :

BorderPane mainpane = new BorderPane(); 
StackPane left = new StackPane(); 
left.setPrefWidth(100); 
mainPane.setLeft(left); 
관련 문제