I just use fxml and it seems like a really cool idea, except for the fact that it's hard for me to work to work. Presumably, I can lay out my GUI using a good markup language, and I can style elements through CSS. Therefore, I have a shortcut in my GUI, and I would like to have a solid black border around it with a width = 1. It seems like it should be simple - fitting the examples that I see here and there in textbooks, etc. I do the following:
<Label text="sample text" style="-fx-border-width: 1; -fx-border-style: solid;" />
But that will not work. Borders are not displayed. In Scene Builder, the Property inspector has a text box labeled βStyleβ, and I see that the style I applied appears there, but I donβt see the border.
What am I missing?
source share