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
Go through this Document. it will help you better understand the Javafx Borderpane Link