早教吧作业答案频道 -->其他-->
java画图报错!看不懂是什么意思啊、、、、Exceptioninthread"AWT-EventQueue-0"java.lang.NullPointerExceptionatgraproject.DrawLine.FullLineY(DrawLine.java:56)atgraproject.Painting.paint(Painting.java:49)atgraproject.Painting.(Paint
题目详情
java画图报错!看不懂是什么意思啊、、、、
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at graproject.DrawLine.FullLineY(DrawLine.java:56)
at graproject.Painting.paint(Painting.java:49)
at graproject.Painting.(Painting.java:41)
at graproject.BeginFrame$3.actionPerformed(BeginFrame.java:105)
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)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at graproject.DrawLine.FullLineY(DrawLine.java:56)
at graproject.Painting.paint(Painting.java:49)
at graproject.Painting.(Painting.java:41)
at graproject.BeginFrame$3.actionPerformed(BeginFrame.java:105)
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)
▼优质解答
答案和解析
空指针异常.你可以查查在调用数据或对象的时候未传递相应的数据.
at graproject.DrawLine.FullLineY(DrawLine.java:56)
at graproject.Painting.paint(Painting.java:49)
at graproject.Painting.(Painting.java:41)
在这里提示找找,这个问题还是可以解决的.
at graproject.DrawLine.FullLineY(DrawLine.java:56)
at graproject.Painting.paint(Painting.java:49)
at graproject.Painting.(Painting.java:41)
在这里提示找找,这个问题还是可以解决的.
看了 java画图报错!看不懂是什...的网友还看了以下:
java画图报错!看不懂是什么意思啊、、、、Exceptioninthread"AWT-Event 2020-05-13 …
Exceptioninthread"AWT-EventQueue-0"java.lang.Arra 2020-05-17 …
在java中,下面选项中关于java.lang.Object类的说法错误的是()在java中,下面 2020-05-24 …
java 画矩形package testFrame;import java.awt.Color;i 2020-06-27 …
JAVA程序设计帮我设计一个JAVA程序:(猜字游戏)编写一个小游戏,游戏规则如下:随机产生4个不 2020-07-17 …
在java中如果同一个包中父类在a.java中,子类在b.java中,编译时已成功编译父类,为何子 2020-07-17 …
java问题:每一项都详细解释下1.下列关于Java语言中String和char的说法,正确的是( 2020-07-17 …
4、在Java中,所有类的公共基类是()A)java.lang.ObjectB)java.lang 2020-07-17 …
java求0—7所能组成的奇数个数 2020-07-17 …
使用java.lang.Math类,生成10个0到99之间的随机整数,找出它们之中的最大者和最小者 2020-08-03 …