I'm building a simple app in javafx, and I want to be able to add a border to a FlowPane.
I have a bit more experience in java than javafx so I tried to find the equivalent of .setBorder(BorderFactory.createEmptyBorder(0,0,0,0))
but to no avail.
Unfortunately, everything I have found seems to be more complicated than I need. I don't need styles or dashes and that's all I'm finding.
Thanks !
There's a
setBorder()
method, so you can add a border to your pane:Though this is really more simple with inline CSS:
Or you could apply it with a CSS file:
where 'root.css' is in the same package and contains: