3 Replies Latest reply: Aug 6, 2008 1:33 PM by 843802 RSS

    Problem in Java application with Screen reader

    843802
      The problem is, I try to implement application work with Screen Reader but it can't read. The only thing that can read is Title bar of program.

      How should I implement the program which can read by general screen reader.

      Here is example GUI that I create for testing with Screen Reader like NVDA (open source).

      http://image.ohozaa.com/iy/loginpage.jpg

      and here is a part of code

      JFrame f = new JFrame("Please enter username and password to login");
      JLabel usernameLB = new JLabel("Username");
      JTextField usernameTF = new JTextField(20);
      JLabel passwordLB = new JLabel("Password");
      JPasswordField passwordTF = new JPasswordField(20);
      JButton enterBT = new JButton("OK");
      enterBT.addMouseListener(this);
      Container cp = f.getContentPane();
      cp.setLayout(new FlowLayout());

      cp.add(usernameLB);
      cp.add(usernameTF);
      cp.add(passwordLB);
      cp.add(passwordTF);
      cp.add(enterBT);
      f.setSize(200,200);
      f.setVisible(true);

      Thank you very much. ( sorry for my poor english grammar) T_T