menu

Description

The menu tag describes an menu or submenu that can either be on a menubar, in another menu, or in a popupmenu.

Attributes

    backgroundcolor
    fontbold
    fontitalic
    fontname
    fontsize
    fontunderline (not available)
    foregroundcolor
    id (required)
    image
    onclick (false)
    oncreate (false)
    ondestroy (false)
    state (enabled)
    tearoff (false)
    text

Children

menuitem menu menuseparator

Description of attributes

image

Specifies the file name of the image drawn next to the menu's title.

onclick

Specifies whether the menu has an onclick event. The onclick event occurs when the menu is clicked with the left mouse button. When the value of this attribute is true, an entry, for handling the event, will be created in the code-frame of the parent window. This attribute can have the values true or false. The default value is false.

tearoff

Specifies if the menu can be torn off. Currently, Java/Swing already supports the interface for this option, but it is not yet implemented.

text

Specifies the text to be used for the menu.