JavaFX 中的应用程序图标
使用 JavaFX 1.2,我试图在我的应用程序上获取自定义图标,但它们被完全忽略。 我做错了什么还是一个错误?
Stage {
title: "My App"
width: 1024
height: 768
scene: bind current_scene
iconified:true;
icons:[
Image { url: "{__DIR__}res/icon16x16.png" },
Image { url: "{__DIR__}res/icon32x32.png" },
Image { url: "{__DIR__}res/icon64x64.png" }
]
}
Using JavaFX 1.2 I am trying to get custom icons on my app and they are being totally ignored.
Am I doing something wrong or is it a bug?
Stage {
title: "My App"
width: 1024
height: 768
scene: bind current_scene
iconified:true;
icons:[
Image { url: "{__DIR__}res/icon16x16.png" },
Image { url: "{__DIR__}res/icon32x32.png" },
Image { url: "{__DIR__}res/icon64x64.png" }
]
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我成功了。看来是用 import 语句解决了。最有可能的
导入javafx.scene.image.*;
但当时发生了很多事情:)
I got it working. It seems that it was solved with an import statement. Most likely
import javafx.scene.image.*;
but there was a lot happening at the time :)