RFR: 8283214: [macos] Screen magnifier does not show the magnified text for JcomboBox [v3]

Abhishek Kumar abhiscxk at openjdk.org
Wed Jul 5 05:01:01 UTC 2023


On Tue, 4 Jul 2023 18:01:06 GMT, Alexey Ivanov <aivanov at 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



More information about the client-libs-dev mailing list