option

abstract fun option(text: @Nls String, modifier: SwingModifier = SwingModifier, accelerator: KeyStroke? = null)

Declares one choice.

Parameters

text

the text of the menu item

modifier

the SwingModifier applied to this option's menu item

accelerator

the key combination that activates the item without navigating the menu hierarchy, displayed next to its text; null (the default) leaves the item without one

See also