“FXMLLoader.constructLoadException” when trying to run java fx application

后端 未结 2 593
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 05:34

I already searched the deepest depths of the interweb but no answer will seem to be found -.-

The problem is in my javaFx programm i want to write. But i can\'t mak

2条回答
  •  醉酒成梦
    2021-01-13 05:42

    The fx:controller attribute is expecting the fully qualified classname of the controller class. I.e. assuming you have

    package main.java.controllers ;
    
    public class MainUIController { ... }
    

    you should have

    fx:controller="main.java.controllers.MainUIController"
    

提交回复
热议问题