javafx exception : Controller value already specified

前端 未结 1 1720
情歌与酒
情歌与酒 2021-01-12 01:20

I\'m calling a method to load a window by passing some parameters to a specific internal method of this window, but I\'ve got this exception:

GRAVE: null
jav         


        
相关标签:
1条回答
  • 2021-01-12 01:49

    Remove the fx:controller attribute from the FXML file. That attribute is an instruction to the FXMLLoader to create a new controller: since you have already set one by calling setController it is contradictory.

    JavaFX Error: Controller value already specified

    This guy answered it ^ Props to him!

    0 讨论(0)
提交回复
热议问题