Monday, February 18, 2013

JavaFX 2 Application Icon

In this short and easy JavaFX tutorial, I will explain how to set JavaFX 2 icon for your application. Okey, you might wonder why I need tutorial for something that is so easy. Well, I am writing this article because I will use this as a reminder, if I ever need this.

You can find any icon for your JavaFX 2 application here on

JavaFX 2 Icon
JavaFX 2 Icon

JavaFX 2 Application Icon code


  1. If
    Image image = new Image("icon.png");
    does not work, use
    Image image =
    new Image([ClassName].class.getResourceAsStream("icon.png"));

  2. I've used that, but it works well how I wrote above.