Does anyone know how to check the text in a jPopupMenu object. I use the following to make the popup occur but I am stuck on how to extract the menu item(s) text.
Set objTable = JavaWindow("somewindow").JavaTable("sometable").Ob ject
'Convert string to array to extract x, y coordinates
'Fire mouse event using x, y coordinates
objTable.FireEvent micMouseMove ,50, 0,x, y, 1, "OFF"
<font class="small">Code:</font><hr /><pre>
Set objTable = JavaWindow("somewindow").JavaTable("sometable").Ob ject</pre><hr />
Here you mentioned like JavaTable. Is this the popup menu area. If so try to get rows and cols properties and then traverse among those.
The jPopupMenu object is contained in cell but just getting the cell properties will not work as the menu is a popup contained in the cell not just a menu in the cell. This is very similar to getting tool tip text from a tool tip contained in a cell except there is no handy getTipText method to use.