-
Bug
-
Resolution: Unresolved
-
P3
-
11, 17, 18, 20, 21, 22
-
generic
-
os_x
Bug report
[macOS, Accessibility] VoiceOver: Missing announcements of JRadioButton's Position
================
Test environment
================
Apple M1 Pro, macOS Ventura version 13.4
java version "20" 2023-03-21
Java(TM) SE Runtime Environment (build 20+36-2344)
Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
openjdk version "21-ea"
OpenJDK Runtime Environment (build 21-ea+23-1988)
OpenJDK 64-Bit Server VM (build 21-ea+23-1988, mixed mode, sharing)
================
Test application
================
SwingSet2.jar
SwingSet2 can be downloaded from:
https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2
======================
Test to reproduce bugs
======================
1. On macOS, start VoiceOver (for example with shortcut Option-Command-F5).
2. Start SwingSet2.jar with jdk-21 (or idk-20, which behaves the same).
-> SwingSet2 window is displayed. The Togglebutton “JInternalFrame demo” has the keyboard focus.
3. Press Right Arrow key once.
-> The ToggleButton “JButton JRadioButton JToggleButton JCheckbox demo” has the keyboard focus.
4. Press Space key.
-> The tab group “Button Demo” is shown.
5. Press Tab key twice.
-> The Buttons tab has the keyboard focus.
4. Press Right Arrow key once.
-> The Radio Buttons tab is selected.
5. Press Tab key once.
-> The “Radio One” JRadioButton has the keyboard focus.
VoiceOver announces “Entering Radio Buttons tab group. Radio One, radio button. You are currently on a radio button. To select this option, press Control-Option-Space.”
Bug: VoiceOver does not announce the position of the radio button. The position is the item no. of items count information.
Expected announcement: "<group information>. Radio One, radio button, 1 of 3. ..."
6. Press Right Arrow key once.
-> The “Radio Two” RadioButton has the keyboard focus and is selected.
VoiceOver announces “Radio Two, selected, radio button. You are currently on a selected radio button.”
Same bug: VoiceOver does not announce the position of the radio button.
Expected announcement: "Radio Two, selected, radio button, 2 of 3. ..."
Note 1: VoiceOver usually announces the position of radio buttons, but not on JRadioButton in Java applications.
Note 2: The mentioned bug does not occur in SwingSet2 when testing with screen readers on Windows OS (tested with Jaws for Windows by Freedom Scientific, or NVDA by NVAccess).
Note 3: Mentioning a bug on VoiceOver announcement does not mean that the issue is on VoiceOver’s side, rather it is the result of the issue and the cause of the issue needs to be found.
[macOS, Accessibility] VoiceOver: Missing announcements of JRadioButton's Position
================
Test environment
================
Apple M1 Pro, macOS Ventura version 13.4
java version "20" 2023-03-21
Java(TM) SE Runtime Environment (build 20+36-2344)
Java HotSpot(TM) 64-Bit Server VM (build 20+36-2344, mixed mode, sharing)
openjdk version "21-ea"
OpenJDK Runtime Environment (build 21-ea+23-1988)
OpenJDK 64-Bit Server VM (build 21-ea+23-1988, mixed mode, sharing)
================
Test application
================
SwingSet2.jar
SwingSet2 can be downloaded from:
https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html#swingset2
======================
Test to reproduce bugs
======================
1. On macOS, start VoiceOver (for example with shortcut Option-Command-F5).
2. Start SwingSet2.jar with jdk-21 (or idk-20, which behaves the same).
-> SwingSet2 window is displayed. The Togglebutton “JInternalFrame demo” has the keyboard focus.
3. Press Right Arrow key once.
-> The ToggleButton “JButton JRadioButton JToggleButton JCheckbox demo” has the keyboard focus.
4. Press Space key.
-> The tab group “Button Demo” is shown.
5. Press Tab key twice.
-> The Buttons tab has the keyboard focus.
4. Press Right Arrow key once.
-> The Radio Buttons tab is selected.
5. Press Tab key once.
-> The “Radio One” JRadioButton has the keyboard focus.
VoiceOver announces “Entering Radio Buttons tab group. Radio One, radio button. You are currently on a radio button. To select this option, press Control-Option-Space.”
Bug: VoiceOver does not announce the position of the radio button. The position is the item no. of items count information.
Expected announcement: "<group information>. Radio One, radio button, 1 of 3. ..."
6. Press Right Arrow key once.
-> The “Radio Two” RadioButton has the keyboard focus and is selected.
VoiceOver announces “Radio Two, selected, radio button. You are currently on a selected radio button.”
Same bug: VoiceOver does not announce the position of the radio button.
Expected announcement: "Radio Two, selected, radio button, 2 of 3. ..."
Note 1: VoiceOver usually announces the position of radio buttons, but not on JRadioButton in Java applications.
Note 2: The mentioned bug does not occur in SwingSet2 when testing with screen readers on Windows OS (tested with Jaws for Windows by Freedom Scientific, or NVDA by NVAccess).
Note 3: Mentioning a bug on VoiceOver announcement does not mean that the issue is on VoiceOver’s side, rather it is the result of the issue and the cause of the issue needs to be found.