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 http://www.iconfinder.com.
JavaFX 2 Icon |
If
ReplyDeleteImage image = new Image("icon.png");
does not work, use
Image image =
new Image([ClassName].class.getResourceAsStream("icon.png"));
I've used that, but it works well how I wrote above.
ReplyDelete