开发者

Applications icons in JavaFX

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" }
  ]
}


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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜