FXML / FXMLLoader error diagnostic tool(s) sought

送分小仙女□ 提交于 2019-11-29 11:21:42

I had the same problem using SceneBuilder 2.0 and JavaFX2. The problem is that SceneBuilder generates JavaFX8 code. The code is valid but not 100% JavaFX2 compatible. Maybe that could be your problem. You should get an Exception from the FXMLLoader in which line the error is.

Scenic View

Scenic View is a JavaFX application designed to make it simple to understand the current state of your application scenegraph, and to also easily manipulate properties of the scenegraph without having to keep editing your code. This lets you find bugs, and get things pixel perfect without having to do the compile-check-compile dance.

There is a good recommendation and description of Scenic View in this presentation:

update Scenic View works like a debugger or monitor for JavaFX applications. It won't help with FXML loader issues, as it investigates or monitors running scenes. Also I found the most recent version, v1.3.0, to be unstable on Windows 7 and Java 8, 64-bit.

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