Results 1 to 2 of 2
  1. #1
    nila is offline Member
    Join Date
    Aug 2010
    Rep Power

    Default Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.plaf.basic.BasicTextUI.getVisibleEdito rRect(
    at javax.swing.plaf.basic.BasicTextUI.paintSafely(Bas
    at javax.swing.plaf.basic.BasicTextUI.paint(BasicText
    at javax.swing.plaf.basic.BasicTextUI.update(BasicTex
    at javax.swing.JComponent.paintComponent(JComponent.j ava:752)
    at javax.swing.JComponent.paint(
    at javax.swing.JComponent.paintToOffscreen(JComponent .java:5124)
    at javax.swing.BufferStrategyPaintManager.paint(Buffe
    at javax.swing.RepaintManager.paint(RepaintManager.ja va:1224)
    at javax.swing.JComponent._paintImmediately(JComponen
    at javax.swing.JComponent.paintImmediately(JComponent .java:4882)
    at javax.swing.RepaintManager.paintDirtyRegions(Repai
    at javax.swing.RepaintManager.paintDirtyRegions(Repai
    at javax.swing.RepaintManager.seqPaintDirtyRegions(Re
    at javax.swing.SystemEventQueueUtilities$ComponentWor
    at java.awt.event.InvocationEvent.dispatch(Invocation
    at java.awt.EventQueue.dispatchEvent( 597)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(
    at java.awt.EventDispatchThread.pumpEventsForFilter(E
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(
    at java.awt.EventDispatchThread.pumpEvents(EventDispa
    at java.awt.EventDispatchThread.pumpEvents(EventDispa

    someone help to solve this problem.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power


    In your stack trace none of your code is involved; probably because an event was generated (a mouse click? a key press?), but when a component wanted to repaint itself some object reference was null. The stacktrace shows that it happened in a JTextComponent (or a derivative thereof). You have to show us the relevant code to see if we can give more detailed advice.

    kind regards,


Similar Threads

  1. Replies: 3
    Last Post: 04-30-2010, 07:44 PM
  2. Replies: 4
    Last Post: 04-01-2010, 10:34 PM
  3. Replies: 5
    Last Post: 08-26-2009, 11:37 AM
  4. Replies: 6
    Last Post: 08-03-2009, 08:58 PM
  5. Replies: 3
    Last Post: 01-29-2008, 02:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts