SceneBuilder创建的文件在IDEA中运行时提示Loca
2020-01-12 本文已影响0人
PLUSLEE
JavaFX的使用当使用SceneBuild进行UI界面搭建后,导入到IDEA中时,需要对fxml文件进行修改
按照项目文件层级,添加如下语句:
fx:controller="sample.Controller"

以此指代清楚fx.controller。
JavaFX的使用当使用SceneBuild进行UI界面搭建后,导入到IDEA中时,需要对fxml文件进行修改
按照项目文件层级,添加如下语句:
fx:controller="sample.Controller"
以此指代清楚fx.controller。