Microsoft SDK for Java

Control.setContextMenu

Sets the shortcut menu (also known as a context menu) associated with this control.

Syntax

public final void setContextMenu( ContextMenu contextMenu )

Parameters

contextMenu

The ContextMenu object that represents the shortcut menu that appears when the user right-clicks this control.

Remarks

The shortcut menu is the menu that appears when the user right-clicks the control.

See Also   getContextMenu

© 1999 Microsoft Corporation. All rights reserved. Terms of use.