0

I can't add an icon to my application with this code

stage2.getIcons().add(new Image("/home/icon.jpg"));

I really need help ?
Thank you

Malik
  • 113
  • 1
  • 1
  • 7
  • 1
    A similar question with quite a few tips is [here](http://stackoverflow.com/q/10275841/5956451) –  Mar 08 '16 at 19:10
  • I have already seen this question !! but my code is similar to the answers of that -duplicated question- and it doesn't work for me !! – Malik Mar 08 '16 at 19:28
  • Well, it boils down to the question where your image is. Is it on the class path, or is it stored elsewhere? See [this](http://stackoverflow.com/a/12827704/5956451) answer. –  Mar 08 '16 at 19:47

0 Answers0