• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic