I'm trying to run a very simple test of a very simple availability check for Swing, so I can get an idea of ββhow much work it will be to provide accessibility support for an already installed Swing application.
I have the simplest Swing program, and I'm using Narrator in Windows Vista to try and display its GUI.
public class ReadableFrame extends JFrame { private ReadableFrame() { super(); setTitle( "Banjollity Window" ); setSize( 640, 580 ); setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE ); JButton button = new JButton( "Hello World" ); getContentPane().setLayout( new FlowLayout() ); getContentPane().add( button ); setVisible( true ); } public static void main( String[] args ) { new ReadableFrame(); } }
The narrator can read the title, but nothing more. I get a "Banjollity window that does not contain other known controls." If I replaced Swing JButton with an AWT button as follows:
Button button = new Button( "Hello World" );
... then it works correctly, and I get "Banjollity window, focus on the Hello World button, contains the Hello World button."
I tried installing the Java Access Bridge in JRE / lib / ext (and I strongly suspect that it works correctly, because my program refused to run my application until it put the DLL in Windows / System32), but to no avail.
Can someone help or share some suggestions?
source share