F
focode
i am working on netbeans my problem is as follows ......in my jframe
i have introduced a JLabel and from the properties of JLabel i have
introduced a gif image , the program gets compiled well but it
generates following Exceptoins when i run the program , pls if anyone
can help me to get it done
thanks
init:
deps-jar:
compile-single:
run-single:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
at motion.motion.initComponents(motion.java:34)
at motion.motion.<init>(motion.java:17)
at motion.motion$1.run(motion.java:80)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
173)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
121)
BUILD SUCCESSFUL (total time: 1 second)
i have introduced a JLabel and from the properties of JLabel i have
introduced a gif image , the program gets compiled well but it
generates following Exceptoins when i run the program , pls if anyone
can help me to get it done
thanks
init:
deps-jar:
compile-single:
run-single:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
at motion.motion.initComponents(motion.java:34)
at motion.motion.<init>(motion.java:17)
at motion.motion$1.run(motion.java:80)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
173)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:
121)
BUILD SUCCESSFUL (total time: 1 second)