Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error using JEditorpane

 
Samual Harvey
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes I have getting this error message on the DOS prompt when I am viewing the help html files inside the JEditorPane:-

Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.text.View.preferenceChanged(Compiled Code)
at javax.swing.text.BoxView.preferenceChanged(Compiled Code)
at javax.swing.text.View.preferenceChanged(Compiled Code)
at javax.swing.text.BoxView.preferenceChanged(Compiled Code)
at javax.swing.text.View.preferenceChanged(Compiled Code)
at javax.swing.text.BoxView.preferenceChanged(Compiled Code)
at javax.swing.text.View.preferenceChanged(Compiled Code)
at javax.swing.text.BoxView.preferenceChanged(Compiled Code)
at javax.swing.text.View.preferenceChanged(Compiled Code)
at javax.swing.text.html.ImageView.run(ImageView.java:411)
at javax.swing.SystemEventQueueUtilities.processRunnableEvent(Compiled C
ode)
at javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(Com
piled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)
Any idea why? Has anyone seen this before.
Thanks.
 
BJ Grau
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun lists this in their bug database, but claims it was fixed pre-Java 2. Why don't you post your code for your JeditorPane so we can take a look at it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic