title: JavaFX - How to create a thin MenuBar?
body: <p>I've placed at the top of a <code>BorderPane</code> a <code>MenuBar</code> with a "File" Menu and a "Close" <code>MenuItem</code> inside:</p>
  
  <p><a href="https://i.stack.imgur.com/5TAGS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5TAGS.png" alt="Thick menubar"></a></p>
  
  <p>How can I make it look thinner like the <code>MenuBar</code>s of most of the software I use, similar to the image below?</p>
  
  <p><a href="https://i.stack.imgur.com/xw3cm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xw3cm.png" alt="Thick menubar"></a></p>
  
  <p>I think it must be simple enough but as a beginner I couldn't really google it. I'm not sure how to name the problem (not many useful results for "javafx menubar height", size, styling, etc.)</p>