JavaFX remove separation between toolbar and top of window
java, javafx-2
Solution
I tried amru's answer and it removed the line from the top of the toolbar. Unfortunately, there was still a line at the bottom of the window decoration. After spending a couple of hours researching this, I found that there's currently no way to do what I wanted to in JavaFX (without embedding the JavaFX in a swing window which isn't an option for other reasons) although it's a known issue and a fix is being worked on for a future release (see here).
Problem
I have a JavaFX app that atm is just a BorderPane with a ToolBar at the top. It looks like this: I was wondering whether there was a way to remove the line between the top of the window and the ToolBar so that it looks something like this: I've already tried setting the ToolBar's border width and the BorderPane's border width to 0 but neither helped.