Search code examples
javajavafxscenebuilderbuilderscene

Styling BorderPane top with CSS


Is it possible to style BorderPane top with CSS? For example I want to color it with different colors for left, right, center, bottom and top. Is that possible?


Solution

  • No. All of them are just properties.

    The BorderPane control gets nodes pointed by those properties and places these nodes on its surface directly, i.e. without any intermediate nodes.

    For example, place one Pane into center and one Button into bottom of the BorderPane. Then you can see there is no any nodes in the hierarhy between the BorderPane and the Pane and between the BorderPane and the Button:

    enter image description here