On Tue, 4 Jul 2023 18:01:06 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> And this seems to be the problem. The getAccessibleName method should be on 
> JComboBox, or its editor, which should return the result of getAccessibleName 
> of the renderer component.

Since the a11y APIs are called upon the `AquaComboBoxButton` (subclass of 
JButton) instance, need to set the text of the button to current displayed text 
of JComboBox. JComboBox contains `getAccessibleName` method but it is not 
invoked.

> Does this work with editable combo box?

Yeah, it worked for editable JComboBox. For editable JComboBox, the string is 
returned by NavigableTextAccessibility and it returns the current text 
displayed in editor.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14497#discussion_r1252538309

Reply via email to