-
Enhancement
-
Resolution: Fixed
-
P2
-
9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8135977 | emb-9 | Pete Brunet | P2 | Resolved | Fixed | team |
JAB is not enabled by default. One way to enable JAB is by modifying JRE/lib/accessibility.properties to set the assistive_technologies property to the assistive technologies [1]
assistive_technologies=com.sun.java.accessibility.AccessBridge
or by setting the system property:
$ java -Djavax.accessibility.assistive_technologies=com.sun.java.accessibility.AccessBridge
[1] http://docs.oracle.com/javase/7/docs/technotes/guides/access/properties.html
In JDK9, JAB is in a different module and com.sun.java.accessibility.AccessBridge is a module-private API. java.awt.ToolKit will not be able to access AccessBridge class. Looks like it also supports multiple classes to be specified.
One option is to consider using ServiceLoader such that JAB will provide the implementation to a service interface that may make sense if it's expected for 3rd party a11y provider.
assistive_technologies=com.sun.java.accessibility.AccessBridge
or by setting the system property:
$ java -Djavax.accessibility.assistive_technologies=com.sun.java.accessibility.AccessBridge
[1] http://docs.oracle.com/javase/7/docs/technotes/guides/access/properties.html
In JDK9, JAB is in a different module and com.sun.java.accessibility.AccessBridge is a module-private API. java.awt.ToolKit will not be able to access AccessBridge class. Looks like it also supports multiple classes to be specified.
One option is to consider using ServiceLoader such that JAB will provide the implementation to a service interface that may make sense if it's expected for 3rd party a11y provider.
- backported by
-
JDK-8135977 Support loading of Assistive Technology from service provider
-
- Resolved
-
- csr of
-
CCC-8055160 Support loading of Assistive Technology from service provider
-
- Closed
-
- relates to
-
JDK-8057190 The Java Accessibility Documentation is out of date.
-
- Resolved
-