MenuItem.getDefault

Overview | Methods | This Package | All Packages

MenuItem.getDefault

Retrieves a boolean value that indicates whether this menu item is the default menu item.

Syntax

public boolean getDefault()

Return Value

Returns true if this menu item is the default menu item; otherwise, returns false.

Remarks

The default menu item for a menu is boldfaced. When the user double-clicks on a submenu that contains a default item, the default item is selected, and the submenu is closed.

See Also   setDefault