Results 1 to 3 of 3
Thread: i need help for MouseListener
- 08-20-2008, 11:00 PM #1
Member
- Join Date
- May 2008
- Posts
- 2
- Rep Power
- 0
i need help for MouseListener
i develop a chess game with java
i used bitboard for programming chess rule but when i did the graphic part i found some problem when i click the Label of a figure in chess board some exception accured :
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at interfaceGr.Echiquier$FigurePiece.mouseReleased(Ec hiquier.java:107)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
is someone can tell me what this mean
-
Have you had a look at class Echiquier line 107? What objects are there? Have you tested them to see if any are null? Sounds like time for some serious debugging. Good luck!
- 08-21-2008, 03:30 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Simply debug and see. Check any null values as Fubarable says.
Similar Threads
-
MouseListener
By Aswq in forum New To JavaReplies: 12Last Post: 07-18-2008, 08:10 AM -
Demonstrating the MouseListener and MouseMotionListener
By Java Tip in forum java.awtReplies: 0Last Post: 04-23-2008, 08:26 PM -
Null array when passed to MouseListener
By stevemcc in forum New To JavaReplies: 2Last Post: 04-02-2008, 10:42 PM -
I need help with my MouseMotionAdapter and MouseListener.
By MurderfaceX4 in forum New To JavaReplies: 1Last Post: 12-07-2007, 03:13 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks