JavaFX removes the separation between the toolbar and the top of the window

I have a JavaFX application. ATM is just a borderpane with a toolbar at the top It looks like this:

I wonder if there is a way to remove the boundary between the top of the window and the toolbar so that it looks like this:

I've tried to set the border width of toolbar and borderpane to 0, but it doesn't help

Solution

I tried Amru's answer, which removed the line from the top of the toolbar Unfortunately, there is still a line at the bottom of the window decoration After spending several hours studying this, I found that there is no way to do what I want to do in JavaFX (without embedding JavaFX into a swing window that cannot be selected for other reasons), although this is a known problem and is being fixed for future versions (see here)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>