How do I add a MenuBar
to a stage? I have tried including it in my GridPane
(which I have added all my other elements to) but it never looks as if it is attached to the top of the window.
Is there anyway to solve this?
I used this code to place it in the layout.
layout.add(menuBar,0,1,10,1);
Where layout
is the GridPane
, and menuBar
is the MenuBar
with the menu things added.