You use the jaccesswalker
to navigate through the component trees in a particular Java Virtual Machine and presents the hierarchy in a tree view.
Description
You select a node in the tree, and from the Panels menu, you select Accessibility API Panel. The jaccesswalker
tool shows you the accessibility information for the object in the window.
Running the jaccesswalker Tool
To use jaccesswalker
, launch the jaccesswalker
Windows application after launching a Java application. For example, to launch jaccesswalker
, run one of the following Windows applications:
Note:
The no-suffix version is installed with 64 bit Java.
JAVA_HOME
is an environment variable and it should be set to the path of the JDK or JRE, for example c:\Program Files\Java\jdk-9
.
64-bit Windows:
%JAVA_HOME%\bin\jaccesswalker.exe:
Inspects a Java application as if jaccesswalker
were a 64-bit assistive technology application
%JAVA_HOME%\bin\jaccesswalker-32.exe:
Inspects a Java application as if jaccesswalker
were a 32-bit assistive technology application
You now have two windows open: The Java application window, and the window for the jaccesswalker
tool. There are two tasks that you can do with jaccesswalker.
You can build a tree view of the Java applications' GUI hierarchy, and you can query the Java Accessibility API information of a particular element in the GUI hierarchy.
Building the GUI Hierarchy
From the File menu, select Refresh Tree menu. The jaccesswalker
tool builds a list of the top-level windows belonging to Java applications and applets. The tool then recursively queries the elements in those windows, and builds a tree of all of the GUI components in all of the Java applications and applets in all of the JVMs running in the system.
Examining a GUI Component
After a GUI tree is built, you can view detailed accessibility information about an individual GUI component by selecting it in the tree, then selecting Panels, and then Display Accessibility Information.