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

    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(BasicTextUI.java:983)
    at javax.swing.plaf.basic.BasicTextUI.paintSafely(Bas icTextUI.java:720)
    at javax.swing.plaf.basic.BasicTextUI.paint(BasicText UI.java:869)
    at javax.swing.plaf.basic.BasicTextUI.update(BasicTex tUI.java:848)
    at javax.swing.JComponent.paintComponent(JComponent.j ava:752)
    at javax.swing.JComponent.paint(JComponent.java:1029)
    at javax.swing.JComponent.paintToOffscreen(JComponent .java:5124)
    at javax.swing.BufferStrategyPaintManager.paint(Buffe rStrategyPaintManager.java:278)
    at javax.swing.RepaintManager.paint(RepaintManager.ja va:1224)
    at javax.swing.JComponent._paintImmediately(JComponen t.java:5072)
    at javax.swing.JComponent.paintImmediately(JComponent .java:4882)
    at javax.swing.RepaintManager.paintDirtyRegions(Repai ntManager.java:785)
    at javax.swing.RepaintManager.paintDirtyRegions(Repai ntManager.java:713)
    at javax.swing.RepaintManager.seqPaintDirtyRegions(Re paintManager.java:693)
    at javax.swing.SystemEventQueueUtilities$ComponentWor kRequest.run(SystemEventQueueUtilities.java:125)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 597)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)

    someone help to solve this problem.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,783
    Blog Entries
    7
    Rep Power
    21

    Default

    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,

    Jos

Similar Threads

  1. Replies: 3
    Last Post: 04-30-2010, 08:44 PM
  2. Replies: 4
    Last Post: 04-01-2010, 11:34 PM
  3. Replies: 5
    Last Post: 08-26-2009, 12:37 PM
  4. Replies: 6
    Last Post: 08-03-2009, 09: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
  •