On Fri, 16 Jun 2023 10:04:48 GMT, Artem Semenov <aseme...@openjdk.org> wrote:

> Why are you using the currently selected element for the button name and not 
> a specific name?

As it is required to show the magnified text for the selected item in 
JComboBox. Setting it to some specific name always results into that name 
irrespective of selected item in JCombobox.

> Whether it will sound right when using a screen reader. Wouldn't this be 
> misleading to a blind user?

I checked with VO announcement with or without this chunk of code, it is same 
in both case. 

> Especially since it will only change when this method is called.

This method is called whenever the current selection is changed so accessible 
name is set to correct item.

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

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

Reply via email to