Menu

@Composable
fun Menu(text: @Nls String, modifier: SwingModifier = SwingModifier, style: SwingStyle<MenuStyleScope> = SwingStyle, content: @Composable () -> Unit = {})

An item that opens onto other items instead of acting itself: a JMenu, a pull-down in a menu bar or a submenu of another menu.

Parameters

text

the text of the menu

modifier

the SwingModifier applied to the underlying component

style

the SwingStyle applied to the underlying component

content

the composable content of the menu (menu items); empty by default, which leaves a menu that opens onto nothing

See also