JavaFX - loading FXML file error

心已入冬 提交于 2019-12-25 02:40:39

问题


I have strange problem which is concerned to loading FXML file using Scene Builder 1.0. I have created a class Warrning and after that I add to my package a FXML file and called it WarrningGUI. Creator has created a Contoller class called WarrningGUIContoller. Until then everything was fine. I stared to create a layout for my application. After I added two raw Panels and turned on and off my FXML file in Scene Builder about 2-3 times something like that appeared:

And this was in "Detail":

And there are my project files:

http://www59.zippyshare.com/v/94923569/file.html

Does anyone know what is going on?

Thanks for all help :)


回答1:


On NetBeans 7.3 onwards dont use "Make Controller" to update your controller file to reflect the updates. It will inject fx:controller every time "Make Controller" is used.



来源:https://stackoverflow.com/questions/20661209/javafx-loading-fxml-file-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!