File提供检索文件的URL的方法和在Image构造函数需要一个URL String.
Image imageForFile = new Image(file.toURI().toURL().toExternalForm());
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3318 次 |
| 最近记录: |