-
Enhancement
-
Resolution: Fixed
-
P3
-
7u4, 8, 9, 11, 12
-
b17
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8284674 | 11.0.16-oracle | Dmitry Markov | P3 | Resolved | Fixed | b03 |
JDK-8287083 | 11.0.16 | Martin Doerr | P3 | Resolved | Fixed | b04 |
JDK-8284700 | 8u341 | Dmitry Markov | P3 | Resolved | Fixed | b02 |
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OS X 10.10.4
14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
A DESCRIPTION OF THE PROBLEM :
JTables are always reported as empty by VoiceOver on OS X.
For example, when focusing a table with VoiceOver enabled, VoiceOver says "<accessible table name>, empty , table has keyboard focus", even if the table is not empty. When navigating through the table, none of the table contents is ever read.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the below example on OS X. Enable Voiceover (Cmd-F5).
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The table should be reported as containing some rows and columns. When navigating the table the contents of cells, rows, or columns (as appropriate) should be read.
ACTUAL -
In the below example, VoiceOver reads:
"Java, AccessibilityTest, Window, accessible table, empty , table has keyboard focus."
Click or use the keyboard to navigate the table. VoiceOver says nothing.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class Main {
private static void runTest() {
JFrame frame = new JFrame("AccessibilityTest");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JTable table = new JTable(new String[][] {{"a", "b"},{"c", "d"}},
new String[] {"foo", "bar"});
table.getAccessibleContext().setAccessibleName("accessible table");
frame.getContentPane().add(new JScrollPane(table));
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(Main::runTest);
}
}
---------- END SOURCE ----------
- backported by
-
JDK-8284674 [macosx] Accessible JTables always reported as empty
- Resolved
-
JDK-8284700 [macosx] Accessible JTables always reported as empty
- Resolved
-
JDK-8287083 [macosx] Accessible JTables always reported as empty
- Resolved
- duplicates
-
JDK-8145211 [macosx] JTable, VoiceOver has no access
- Closed
-
JDK-7124284 [macosx] Nothing heard from VoiceOver when navigating in a table.
- Closed
-
JDK-8031672 [macosx] Javaws cache viewer not accessible
- Closed
-
JDK-8133712 JTabe always reported as empty by VoiceOver
- Closed
- relates to
-
JDK-8145211 [macosx] JTable, VoiceOver has no access
- Closed
-
JDK-8215908 [accessibility] [macos] VO always read "selection replaced 6 items selected",when using the left/right and page up/page down keys to navigate the table items.
- Closed