css border height and width code example
Example 1: border width css
.element {
border-width: 2px;
}
Example 2: borderpane width and height
borderPane.prefHeightProperty().bind(scene.heightProperty());
borderPane.prefWidthProperty().bind(scene.widthProperty());