I am using the following code and would like to hear NVDA and JAWS announce my button when I roll over it. The JFrame name and title bar components are announced, but that is all. Can someone help?
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JFrame;
//import javax.accessibility.*;
public class JFrameExample
extends JPanel {
public JFrameExample() {
JButton aButton = new JButton("Button");
aButton.getAccessibleContext().setAccessibleName("Button");
String desc = "This is a simple button";
aButton.getAccessibleContext().setAccessibleDescription(desc);
add(aButton);
}
public static void main(String[] args) {
JFrame f = new JFrame("Accessible Button");
f.getContentPane().add(new JFrameExample(), BorderLayout.CENTER);
f.pack();
f.setVisible(true);
}
}
Environment - Windows Vista 64
JDK 1.6.0_21 32 bit , jre6 32 bit - Java Access Bridge dlls installed in both places
NetBeans 6.9.1 , Eclipse Helios 32 bit
NVDA 2010.1, JAWS 11