I'm just starting with Scene Builder and java. I've laid out my main GUI but when I preview it, it has wide borders for all my h/v boxes, anchor panels, etc. How do I hide the borders when I actually run (preview) my UI? Is there a way in scene builder (preferred) or will I have to code this instead?
no default border on
layouts which can be visible. In case, you need to remove border from layouts you can set
css code using setStyle() method,
You can also use external css document for styling components.
Actually, the fxml preview means that
showing your design in a window. So you might confusing with
window frame border.Something like this,
But you can make
borderless window by
styling your stage using initStyle() ,
You can also may use
TRANSPARENT instead. After that you have to manage your title bar for customized window.