1 Reply Latest reply: Apr 20, 2011 12:51 PM by 835086 RSS

    JAWS is not reading JButton

    837968
      Can anybody pls help me in resolving some issues regarding JAWS
      I just started with small example and given below is the code:

      import javax.accessibility.Accessible;
      import javax.swing.*;
      import java.awt.*;
      import javax.swing.JPanel;
      public class AccesssimpleButton extends JPanel implements Accessible{

      private static final long serialVersionUID = 1L;
       
      public AccesssimpleButton()
      {
      JButton aButton = new JButton("Button");
      aButton.getAccessibleContext().setAccessibleName("Button1");
      String desc = "This is a simple button";
      aButton.getAccessibleContext().setAccessibleDescription(desc);
      add(aButton);
      }
      public static void main(String[] args)
      {
      JFrame frame = new JFrame("AccessSimpleButton");
      frame.getContentPane().add(new AccesssimpleButton(), BorderLayout.CENTER);
      frame.pack();
      frame.setVisible(true);
      }
      }


      JAWS is reading only "Access Simple Button",but Button is not read by JAWS .Also description of button also not read.

      Can you pls suggest me that I have to do any setup before running this program.
      I have installed JAWS 11(Licensed version)
      Also I am running this application in IBM rational application developer 7.0

      Regards
      Srilalitha
        • 1. Re: JAWS is not reading JButton
          835086
          Srilalitha,

          I know it's been a while since you posted this but do you have Java Access Bridge installed? JAWS (along with any other accessibility technologies) need that so it can get the Java Accessibility API.

          http://www.oracle.com/technetwork/java/javase/documentation/index-142733.html