Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Accessibility support for JavaFX has the following main aspects:

  • Supporting High Contrast and Theming
  • Keyboard Navigation
  • Accessibility APIs and Assistive Technology support

High Contrast and Theming

Theming can be achieved using high contrast style sheet provided with FX runtime. Currently this style sheet has to be loaded manually.  You can do this using:

scene.getStylesheets().add("/com/sun/javafx/scene/control/skin/caspian/highcontrast.css"); 

Unfortunately, there is currently no support to inform your program that the user has changed dynamically changed to and from high contrast.  Some platforms simply do not have the concept and instead, expect the user to choose the appropriate desktop theme.

Keyboard Navigation

See the document that lists all JavaFX UI Controls including their shortcuts and keyboard navigation

Accessibility APIs and Assistive Technology Support

 Work is underway to understand the next steps for Accessibility in this area.  Some work has been done for 8.0, and the results can be found here.