Monika Stewing
Grünschnabel
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
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