开发者

Applications icons in JavaFX

开发者 https://www.devze.com 2022-12-13 06:16 出处:网络
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?

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

精彩评论

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