PicoYou
PicoYou

Reputation: 71

Sizing a rectangle in a borderpane

I want to have a rectangle at the center of a borderpane but i want to make sure that the rectangle's size will follow the size of the center of the borderpane, how can we do that?

PS: I'm using JavaFX 8 (no FXML file just java code).

Thanks in advance

Upvotes: 1

Views: 410

Answers (1)

Suits999
Suits999

Reputation: 369

Go through this Document. it will help you better understand the Javafx Borderpane Link

Upvotes: 1

Related Questions