Creates a special 'About' menu item.
Creates a special 'About' menu item. If the platform has a special
place for this item, the returned object indicates this by being !visible
.
In that case the call site may omit adding the item to the regular menu structure.
If the item is visible, i.e. the platform does not have special support for it,
it should be added to the end of the last menu group labelled "Help"
.
The item's key will be "about"
.
the Swing application which is used to determine the item name.
the action to execute when the menu item is selected
the menu item, possibly a dummy in which case its visible
attribute is false
Creates a special 'Preferences' menu item.
Creates a special 'Preferences' menu item. If the platform has a special
place for this item, the returned object indicates this by being !visible
.
In that case the call site may omit adding the item to the regular menu structure.
If the item is visible, i.e. the platform does not have special support for it,
it should be added to "Edit"
menu on Linux or the "Tools"
menu on Windows.
The item's key will be "preferences"
.
the Swing application which is used to determine the item name.
the action to execute when the menu item is selected
the menu item, possibly a dummy in which case its visible
attribute is false
Creates a special 'Quit' menu item.
Creates a special 'Quit' menu item. If the platform has a special
place for this item, the returned object indicates this by being !visible
.
In that case the call site may omit adding the item to the regular menu structure.
If the item is visible, i.e. the platform does not have special support for it,
it should be added to "File"
menu.
The item is automatically associated with an action which calls Desktop.mayQuit()
, conditionally
followed by app.quit()
.
The item's key will be "quit"
.
the Swing application which is used to determine the item name.
the menu item, possibly a dummy in which case its visible
attribute is false