早教吧作业答案频道 -->其他-->
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画图报错!看不懂是什...的网友还看了以下:
这个题我们有思路,设A为三阶矩阵,a1=(1,2,1)Ta2=(0,1,1)T都是AX=0的解,A 2020-04-13 …
导数中dydxdu的d是什么意思?看书中看到求导公式的时候下面突然冒出来的公式dydxdu等不知道 2020-05-13 …
谁帮看看这段话啥意思?看起来不是什么好话,是一个外国人说一个笨笨女孩的,谁帮看看是什么意思! 暂时 2020-05-16 …
英语翻译看一个英文材料一句话中提到Pt.0Ch.1Sec.3怎么翻译?是part0chapter1 2020-06-04 …
谁能帮我看看下面一个数控洗的宏程序意思R1=0(起始1)R2=360(终止1)R3=0(起始2)R 2020-07-10 …
已知集合A={(x,y)|x2+(y-1)=1},集合B={(x,y)|x+y+a大于等于0},若 2020-07-15 …
CREATETABLE"&DBSCHEMA"."CAPPLICATIONS"(。。。。SERVER 2020-07-17 …
cisco三层交换机的看到的路由信息怎么理解showiproute后看到多条。其中2条怎么理解。C 2020-07-18 …
1/9=0.11111111.2/9=0.222222.3/9=0.33333333.4/9=0. 2020-07-24 …
一道数学题,请大神来看看0<x<⅓,求y=x﹙1-3x﹚的最大值?能不能用基本不等式“√(ab)≤ 2020-08-03 …