xxxxxxxxxx
borderPane.prefHeightProperty().bind(scene.heightProperty());
borderPane.prefWidthProperty().bind(scene.widthProperty());
xxxxxxxxxx
You can not set Border Width in the Percentage its the rule
But you can able to do this just by wrapping into a new div
and in most of the cases you did not need that