Getting text from JPopUpMenu contained in a JTable
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"
I have tried creating a generic JavaObject with a toolkit class of javax.swing.JPopUpMenu in the OR hoping that after the above code popped the menu QTP would 'see' the JavaObject then I could work with it but I can never get QTP to acknowledge that it exists.
Carl Block <font color="blue">"Pertempto Ergo Sum"</font>