defaultMenuBar([menu_bar])
Class: SwingUI.
Description:
Sets or gets a default menu bar that should be used by macOS at the top of the screen. If the specified menu bar was added to any parent component, it will be removed from that component.
This is supported only on macOS.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
MenuBar | null |
MenuBar component. Set to |
Returns:
If called without parameters, a default Menubar component is returned or null of it was never set; otherwise boolean is returned indicating if the operation was accepted by the operation system.
Type: MenuBar | boolean
