第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

關(guān)于不同意按鈕問(wèn)題

點(diǎn)擊不同意按鈕會(huì)報(bào)錯(cuò),報(bào)空指針異常。下面是代碼:

@FXML
protected??void??disagree(){
????int?x?=?ThreadLocalRandom.current().nextInt(600);
????int?y?=?ThreadLocalRandom.current().nextInt(400);
????disLoveBtn.setLayoutX(x);
????disLoveBtn.setLayoutY(y);
}

報(bào)錯(cuò):

Exception?in?thread?"JavaFX?Application?Thread"?java.lang.RuntimeException:?java.lang.reflect.InvocationTargetException	at?javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774)	at?javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1657)	at?com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)	at?com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)	at?com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)	at?com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)	at?com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)	at?javafx.event.Event.fireEvent(Event.java:198)	at?javafx.scene.Node.fireEvent(Node.java:8413)	at?javafx.scene.control.Button.fire(Button.java:185)	at?com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)	at?com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)	at?com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)	at?com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)	at?com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)	at?com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)	at?com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)	at?com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)	at?com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)	at?com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)	at?com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)	at?javafx.event.Event.fireEvent(Event.java:198)	at?javafx.scene.Scene$MouseHandler.process(Scene.java:3757)	at?javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)	at?javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)	at?javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)	at?com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:381)	at?com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295)	at?java.security.AccessController.doPrivileged(Native?Method)	at?com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$354(GlassViewEventHandler.java:417)	at?com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)	at?com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:416)	at?com.sun.glass.ui.View.handleMouseEvent(View.java:555)	at?com.sun.glass.ui.View.notifyMouse(View.java:937)	at?com.sun.glass.ui.win.WinApplication._runLoop(Native?Method)	at?com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)	at?java.lang.Thread.run(Thread.java:748)Caused?by:?java.lang.reflect.InvocationTargetException	at?sun.reflect.NativeMethodAccessorImpl.invoke0(Native?Method)	at?sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at?sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at?java.lang.reflect.Method.invoke(Method.java:498)	at?sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)	at?sun.reflect.GeneratedMethodAccessor1.invoke(Unknown?Source)	at?sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at?java.lang.reflect.Method.invoke(Method.java:498)	at?sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)	at?javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1771)	...?48?moreCaused?by:?java.lang.NullPointerException	at?sample.Controller.disagree(Controller.java:29)	...?58?more


正在回答

1 回答

能將不同意按鈕的code部分截圖嗎?

想看看你是不是綁定的事件不對(duì)

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
N種語(yǔ)言實(shí)現(xiàn)4版本告白神器
  • 參與學(xué)習(xí)       5778    人
  • 解答問(wèn)題       202    個(gè)

0基礎(chǔ)秒學(xué)告白神器,VBS版、前端版、Java版、小程序版,4款神器各取所需

進(jìn)入課程

關(guān)于不同意按鈕問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)