JEditorPane in a JScrollPane showing HTML JAWS accessibility

in our company we've got a jaws screen reader.

He doesn't read a HTML content of a JEditorPane.

I've used J2SE 1.3.1 and 1.50, Java Access Bridge 1.0.2 und 2.0.1

and Jaws 4.51 and Jaws 6.20

Can somebody tell me how it works?

Here my code:

//in a JFrame

GridLayout l_GridLayout = new GridLayout(1,1);

this.getContentPane().setLayout(l_GridLayout);

JEditorPane l_JEditorPane = new JEditorPane();

JScrollPane scroller = new JScrollPane();

m_JEditorPane = new JEditorPane();

HTMLEditorKit l_HTMLEditorKit = new HTMLEditorKit();

JLabel label = new JLabel("CBM Startseite");

label.setLabelFor(m_JEditorPane);

m_JEditorPane.setEditorKit(new HTMLEditorKit());

m_JEditorPane.setEditable(false);

m_JEditorPane.addHyperlinkListener(this);

JViewport vp = scroller.getViewport();

vp.add(m_JEditorPane);

vp.setBackingStoreEnabled(true);

getContentPane().add(scroller);

File file = new File(res.getString("START_HTML_FILE"));

File l_FileTemp = getStartSeiteHTML(file);

try

{

URL l_URL = l_FileTemp.toURL();

m_JEditorPane.setPage(l_URL);

}

catch (IOException e)

{

JOptionPane.showMessageDialog( null ,"MainFrame IOException " + " "+ e.toString(), "Error", JOptionPane.ERROR_MESSAGE);

}

Thank you

Monika

[1401 byte] By [Monika_Stewing1a] at [2007-11-27 11:25:02]
# 1

I am confused also by how Jaws works.

If you put JEditorPane directly, maybe Jaws will read it's contents.

It seems that Jaws will read accessibleText returned by the component.

JScrollPane return a null while JEditorPane will a instance which contains the text ( by calling getAtIndex(AccessibleText.SENTENCE, 0) , you can verify :) )

rabbit_sebastiena at 2007-7-29 16:02:03 > top of Java-index,Desktop,Core GUI APIs...