javafx exception : Controller value already specified

前端 未结 1 1713
情歌与酒
情歌与酒 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)
提交回复
热议问题