這是我的第一個JavaFX程序,我想通過ePass通過eUser和密碼接受用戶名。當我嘗試檢查,如果文本框爲空,使用驗證我得到這個錯誤: Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.inv
所以,我創建了2矩形,並檢查他們是否有交叉,但每次都得到不同的結果: Rectangle a = new Rectangle(10.00, 10.00);
Rectangle b = new Rectangle(30.00, 20.00);
a.setFill(Color.RED);
_centerPane.getChildren().add(a);
_c