hello,
another problem....
i try to instantiate a JEditorPane and get strange Errors:
java.lang.NumberFormatException: 98%
at java.lang.Integer.parseInt(Integer.java)
at java.lang.Integer.valueOf(Integer.java)
at com.sun.java.swing.text.html.HRuleView.<init>(HRuleView.java:62)
at
com.sun.java.swing.text.html.HTMLEditorKit$HTMLFactory.create(HTMLEditorKit.java:734)
at
com.sun.java.swing.text.CompositeView.loadChildren(CompositeView.java:66)
at
com.sun.java.swing.text.CompositeView.setParent(CompositeView.java:158)
at
com.sun.java.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:749)
at
com.sun.java.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:354)
at
com.sun.java.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:345)
at
com.sun.java.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1105)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:103)
at
com.sun.java.swing.JComponent.firePropertyChange(JComponent.java:2604)
at
com.sun.java.swing.text.JTextComponent.setDocument(JTextComponent.java:309)
at com.sun.java.swing.JEditorPane.setPage(JEditorPane.java:159)
at com.sun.java.swing.JEditorPane.<init>(JEditorPane.java:81)
at HtmlPanel.<init>(HtmlPanel.java:48)
at test.<init>(test.java:44)
at test.main(test.java:56)
the offending line of my code:
html = new JEditorPane(url);
(with an empty constructor is does exactly the same....)
don't know if this is a linux-specific problem.....
i am using the jdk1.1.6v4 and swing1.0.3....
ciao
bboett
==============================================================
acount at earthling net
http://erm6.u-strasbg.fr/~bboett
===============================================================
Unsolicited commercial email is NOT welcome at this email address
To contact me replace acount by bboett in above addresses