RFR: 8277497 Last column cell in the JTAble row is read as empty cell
Sergey Bylokhov
serb at openjdk.java.net
Thu Nov 25 03:57:03 UTC 2021
On Wed, 24 Nov 2021 15:16:54 GMT, Artem Semenov <asemenov at openjdk.org> wrote:
> Testing https://bugs.openjdk.java.net/browse/JDK-8271071
> Step to reproduce
> 1) Run SwingSet2 in JDK 18 ( I used b24 )
> 2) Enable Voiceover.
> 3) Select JTable demo
> 4) Click any row in the table or select the first row . Observe that row is selected & VoiceOver reads the column values or navigate the columns one by one by pressing tab key. When the focus reaches the last column ( Favourite Food ) Observe that column value is read as null. If you hear the same then the bug is reproduced.
src/java.desktop/share/classes/javax/swing/JLabel.java line 1091:
> 1089: (JLabel.this.getIcon() != null)) {
> 1090: name = ResourceBundle.getBundle("com.sun.accessibility.internal.resources.accessibility", Locale.getDefault()).getString("image");
> 1091: }
Probably it should somehow ask the icon itself about possible description? I guess the JLabel should work similar to Icon/ImageIcon/AccessibleImageIcon/etc when the text is empty but the icon is set. But I am not sure that the iicons are supported by the a11y in Swing, for example how the reader will cover the simple Icon? Will it say something?
-------------
PR: https://git.openjdk.java.net/jdk/pull/6538
More information about the client-libs-dev
mailing list