程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> 線程-Exception in thread AWT-EventQueue-0

線程-Exception in thread AWT-EventQueue-0

編輯:編程解疑
Exception in thread "AWT-EventQueue-0"

請問各位這是什麼問題啊?求指教

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at zzk.zhuoyue.daohang.MainDaohangFrame.initComponents(MainDaohangFrame.java:717)
at zzk.zhuoyue.daohang.MainDaohangFrame.(MainDaohangFrame.java:51)
at zzk.zhuoyue.daohang.MainDaohangFrame$57.run(MainDaohangFrame.java:1338)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

最佳回答:


檢查MainDaohangFrame.initComponents,裡面有變量為null,貼出它的代碼
是不是控件初始化出錯。或者配置文件。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved