• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Error using JEditorpane

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic