JavaFX——fxml檔案載入錯誤:[javafx.fxml.LoadException]解決方案之一
問題描述
javafx.fxml.LoadException:
/D:/School%20Life/University/Homework/FMS/fms-gui/fms-gui-javafx/target/classes/fxml/desktop-icon.fxml
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2409)
問題分析
問題程式碼:
@Override
public void initialize(URL location, ResourceBundle resources) {
resourceBundle = resources;
this.icon = new Image(resourceBundle.getString("icon"));
this.label = resourceBundle.getString("label");
this.desktopIconLabel.setText(label);
this.desktopIconImage.setImage(icon);
System.out.println("11");
}
解決方案
參考文章
相關文章
- git錯誤:物件檔案為空(object-file-is-empty)解決方案Git物件Object
- standby新增檔案錯誤的解決方法
- latex 錯誤以及解決方案
- Windows下make clean指令錯誤[錯誤碼2](系統找不到指定檔案)的解決方案Windows
- 前端JS 下載大檔案解決方案前端JS
- Winform無法載入基類的錯誤解決ORM
- 【MySQL篇】Navicat匯入SQL大檔案報錯終極解決方案MySql
- insert into select 批量載入出錯解決方案
- 在Spring Boot中從類路徑載入檔案解決方案Spring Boot
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- ORA-28000錯誤解決方案
- ORA-07445: 錯誤解決方案
- ORA-00054錯誤解決方案(摘)
- Eclipse專案樹形列表不提示錯誤解決方案Eclipse
- 刪除大量檔案Argument list too long錯誤解決
- 解決MySQL server has gone away錯誤的解決方案MySqlServerGo
- steam磁碟寫入錯誤怎麼解決 steam磁碟寫入錯誤解決方法大全
- Python:Python中文寫入csv檔案出現亂碼問題的解決方案之一Python
- 【轉載】ORA-27054 錯誤解決
- Hadoop常見錯誤及解決方案Hadoop
- HTTP 錯誤 500.21 - Internal Server Error 解決方案HTTPServerError
- MySQL插入資料1366錯誤解決方案MySql
- 開發常見錯誤及解決方案
- MySQL錯誤Incorrect file format解決方案薦MySqlORM
- Java java.lang.ExceptionInInitializerError 錯誤解決方案JavaExceptionError
- DataGuard ORA-10458錯誤解決方案
- informatica SORT_40406 錯誤解決方案ORM
- SQL Server 錯誤程式碼:17058 。解決方案SQLServer
- Excel匯入null錯誤解決方式ExcelNull
- Windows 更新錯誤 8024401C -解決方法之一Windows
- vagrant homestead 錯誤記錄以及解決方案
- JNI命令列下編譯錯誤解決方案命令列編譯
- ORA-00845的錯誤與解決方案
- 使用JPEGImageEncoder提示Access restriction:錯誤 解決方案REST
- Unsupported major.minor version 51.0 錯誤解決方案
- SVN 遇到的一些錯誤解決方案
- ORA-01658 錯誤之解決方案
- ant構建時出現錯誤解決方案