title: JavaFX how to get menubar to fit to parent in width only?
body: <p>I am using Scene Builder to create my GUI and my menu bar isn't resizing to the parent. How do i get it to do this?</p>
  
  <p>When I try Modify -> Fit to Parent, the menu bar takes up the whole root pane, and obviously this isn't what i want. Here is an image of what i am talking about:</p>
  
  <p><img src="https://i.stack.imgur.com/jwyuf.png" alt="enter image description here"></p>
  
  <p>As you can see, the menu bar doesn't fully extend to the end of the window.</p>