java初学者求助。。。。。。。。
正在研究自己的毕业设计,运行的时候点击一个按钮报出了以下异常,求各位高手指点Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at chaxunchanpin.actionPerformed(chaxunchanpin.java:63)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
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(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown 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.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source) java exception thread --------------------编程问答-------------------- 不会看英文吗?
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at chaxunchanpin.actionPerformed(chaxunchanpin.java:63)
==〉
异常在线程 "AWT-EventQueue-0" 空指针异常
在chaxunchanpin类的actionPerformed方法(chaxunchanpin.java的63行)
--------------------编程问答-------------------- chaxunchanpin.java类里面的63行有空指针异常。估计是没有创建实例对象就调用了。 --------------------编程问答-------------------- 提示空指针异常
补充:Java , Java相关