#FXMLLoader is null and i have no clue what i did wrong
1 messages · Page 1 of 1 (latest)
<@&987246487241105418> please have a look, thanks.
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
ok, it's the textfields
why do they crash though?
this is the error message btw:
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at [email protected]/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.NullPointerException: Root cannot be null
at [email protected]/javafx.scene.Scene.<init>(Scene.java:349)
at [email protected]/javafx.scene.Scene.<init>(Scene.java:252)
at Main.start(Main.java:23)
at [email protected]/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at [email protected]/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at [email protected]/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at [email protected]/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$10(GtkApplication.java:263)
... 1 more```
wait
is onkeytyped not the correct way to use them?