[9:7] extends: Node, Control, Region
Represents a JavaFX MenuBar, a UI component that can hold multiple Menu items. The MenuBar class provides functionality to add menus in a horizontal menu bar.
MenuBar ()
Initializes a new MenuBar instance.
this
objectadd (Items
)
Adds one or more Menu objects to the MenuBar.
Items
Either a single Menu or a list of Menus to add.this
object for chaining