With this PR: VoiceOver correctly identifies a JToggleButton as a "toggle button" (instead of a "checkbox")
This adds the subrole of NSAccessibilityToggleSubrole (which Accessibility Inspector shows as the subrole "AXToggle"). In the screenshot the subrole appears as expected, and the "class" (in the "element") section is different from production: <img width="1920" height="1080" alt="toggled button fixed" src="https://github.com/user-attachments/assets/b449e273-c089-4930-a968-9ea8643f3ac0" /> ------------- Commit messages: - 8379347: add VoiceOverToggleButtonRole test - 8379347: give toggle buttons subrole Changes: https://git.openjdk.org/jdk/pull/30096/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30096&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8379347 Stats: 78 lines in 3 files changed: 77 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/30096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30096/head:pull/30096 PR: https://git.openjdk.org/jdk/pull/30096
