Pessoal , eu estava fazendo um tela no netbeans e colocando imagens em botões, só que eu mando compilar aparece um error:
init:
deps-jar:
Compiling 1 source file to C:\Desenvolvimento\EstagioII\build\classes
compile-single:
run-single:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
at gui.TipoAtividade.initComponents(TipoAtividade.java:59)
at gui.TipoAtividade.<init>(TipoAtividade.java:17)
at gui.TipoAtividade$1.run(TipoAtividade.java:193)
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)
as imagens são de extensão “png”.
como eu posso resolver isso;