线程-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,贴出它的代码
是不是控件初始化出错。或者配置文件。

解决方案二:

空指针异常,应该是有值为空

时间: 2024-10-31 10:06:06

线程-Exception in thread "AWT-EventQueue-0"的相关文章

javascript-html标签无背景色style="background:url(0)"

问题描述 html标签无背景色style="background:url(0)" <input type="text" style="background:url(0);border-width: 0"> 为什么这样写就没有背景色了?url(0)代表什么意思,请各位老师指点.谢谢. 解决方案 url是设置背景图片的.使用background可以同时设置背景图片和背景颜色之类的css,看这个>:http://www.w3schoo

线程-关于定时器Exception in thread &amp;amp;quot;Timer-1&amp;amp;quot;

问题描述 关于定时器Exception in thread "Timer-1" 做了个timer定时器,在执行修改方法时报错,关于定时器Exception in thread "Timer-1" java.lang.NullPointerException,不知为何,新手捉急调用的方法:部分代码,在出错后,会进入Timer.class中诸位大神救我.. 解决方案 今项目中要自动更新会员级别,用到定时器,顺便整理了下 感谢下边俩位兄弟的分享 http://www.bl

Exception in thread &amp;amp;quot;AWT-EventQueue-0&amp;amp;quot; java.lang.NullPointerException

问题描述 我的代码如下:JTabbedDemo.javaimport javax.swing.*;import java.awt.*;public class JTabbedDemo{public static void main(String[] args) throws Exception{//显示外观风格UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());JFrame jframe=new JFrame("

求解答-最好运行结果说是Exception in thread &amp;amp;quot;main&amp;amp;quot; java.NoSuchMethordError:main

问题描述 最好运行结果说是Exception in thread "main" java.NoSuchMethordError:main import java.applet.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; //import java.Math.*; public class cal extends Applet { //定义所有需要使用的全局变量 String str="

java sql 错误-Exception in thread &amp;amp;quot;main&amp;amp;quot;

问题描述 Exception in thread "main" 5C Exception in thread ""main"" java.lang.NullPointerException 老是出现这个错误,是为什么呢 解决方案 线程里面出现了空指针异常 解决方案二: AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (400)Bad

发送-Exception in thread &amp;amp;quot;iothread-2&amp;amp;quot;

问题描述 Exception in thread "iothread-2" 各位前辈:今天我用ZeroMq发送数据的时候,出现了如题所示的异常.之前一直是正常发送的,但不知道为什么今天就出现了这个异常: Exception in thread "iothread-2" java.lang.NegativeArraySizeException at zmq.Msg.size(Msg.java:141) at zmq.Msg.(Msg.java:62) at zmq.V

求解答-运行结果说是Exception in thread &amp;amp;quot;main&amp;amp;quot; java.NoClassDeFoundError:Example

问题描述 运行结果说是Exception in thread "main" java.NoClassDeFoundError:Example import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import javax.swing.*; import j

Linux(centOS):Exception in thread &amp;quot;main&amp;quot; java.lang.UnsupportedClassVersionError***

问题1: Exception in thread "main" java.lang.UnsupportedClassVersionError: HWByCentOS : Unsupported major.minor version 52.0 现象:在安装完jdk后,执行javabean.class文件时候出现错误            javac HWByCentOS.java            java HWByCentOS   (***)            使用javac

hashmap-Java中遇到的一个异常Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.NullPointerException

问题描述 Java中遇到的一个异常Exception in thread "main" java.lang.NullPointerException import java.util.*; public class NewHashTest{ public static void main(String[] args) { HashMap hash = new HashMap(); Emp emp1 = new Emp(""laoda""111&q