Creating a desktop icon using JWS JNLP for a JavaFX app

前端 未结 5 1050
傲寒
傲寒 2021-01-13 00:53

I am trying to get a custom destop icon to be displayed for my app but for some reason no matter what I do the same default java icon shows up. I have tried everything I can

5条回答
  •  佛祖请我去吃肉
    2021-01-13 01:50

    I would try the following, in order:

    1. Create an icon of 32x32 in size and add it as an additional . The spec says that size is used for desktop icons.
    2. Use your 64x64 icon as the "default". For example, your new elements would be:

      
      
      
      
    3. Remember that your images are accessed relative to your codebase attribute in your jnlp xml element

    4. If none of those work, you are welcome to compare your JNLP to one of mine that works.

    I realize that this JNLP stuff is kind of a pain. Hope one of these work for you.

提交回复
热议问题