SwingPopupMenu Property

Applies to TestComplete 14.72, last modified on April 22, 2021

Description

This property returns the Menu object that is used to perform various actions over the control’s context menu.

To access the menu properties and perform actions over it, the context menu should be displayed on a screen. If the menu is hidden, SwingPopupMenu returns an empty object. To activate the control’s context, you can simulate a click with a right mouse button or send the Keys[Apps] keystroke.

Declaration

TestObj.SwingPopupMenu

Read-Only Property A Menu object
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

All Java application objects.

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

The Menu object that corresponds to the control’s context menu.

Remarks

This property is not supported for controls created with the SWT and WFC libraries.

See Also

Java Swing Menu Bar Support
Testing Java Applications - Overview

Highlight search results