RFR: 8361283: [Accessibility, macOS, VoiceOver] VoiceOver announced Tab items of JTabbedPane as RadioButton on macOS [v2]
Abhishek Kumar
abhiscxk at openjdk.org
Wed Jul 2 15:37:30 UTC 2025
> Issue : VO doesn't announce Tab items of a JTabbedPane as RadioButton which is wrong.
>
> Analysis : That is due to the role mapping of tab items as `NSAccessibilityRadioButtonRole` in `JavaAccessibilityUtilities.m` file. Since the accessibility role description is fetched in `accessibilityRoleDescription` API if `CommonComponentAccessiblity.m` file, the sub-role passed as a parameter is `nil`, returned value is RadioButton..
>
> Proposed Fix : Fix is to get the correct accessibility role description from Appkit, we should pass `NSAccessibilityTabButtonSubrole` in the subrole parameter and that returns the accessibility role as `Tab` and is announced correctly by VO.
Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
Add test
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26096/files
- new: https://git.openjdk.org/jdk/pull/26096/files/1873db3a..0bc63054
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26096&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26096&range=00-01
Stats: 83 lines in 1 file changed: 83 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/26096.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26096/head:pull/26096
PR: https://git.openjdk.org/jdk/pull/26096
More information about the client-libs-dev
mailing list