I have a pull-down list that I'm trying to readthe current value of .
When I use this command:
titleCaptureObj = ((JButton)activewindow.findComponentAt(i,j)).getAccessibleContext().getAccessibleValue();
The returned result is
javax.swing.JButton$AccessibleJButton@17c50b9
What I want is the text that appears in the window - the current set value.
When I change getAccessibleValue to getAccessibleText, I get a null result, even though text is appearing in the pulldown list. I thought I'd tried every available AccessibleContext option, and the likely ones keep returning null results.
What am I missing?
thanks!