运行到//查看按钮具备什么样的监听器,需要查看该组件对象的功能,这个事件时,结果报错
如下:
Exception in thread "main" java.lang.NullPointerException
at cn.itcast.FrameDemo.myEvent(FrameDemoTest.java:68)
at cn.itcast.FrameDemo.init(FrameDemoTest.java:40)
at cn.itcast.FrameDemo.<init>(FrameDemoTest.java:29)
at cn.itcast.FrameDemoTest.main(FrameDemoTest.java:19)
找了好几遍没找出错误