JavaFX Ikonli Font Icons Library Tutorials.
Ikonli provides icon packs that can be used in Java applications. Currently Swing and JavaFX UI toolkits are supported.
In this repository you will find a small .fxml example of how to use JavaFX Ikonli Font Icons Library
You can actually find everything you need on the above website but i will add a sample Maven dependencies declaration : Let's say you want to use 2 different Font Icon Packs . You go like this in Maven :
<!-- ikonli -->
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-javafx</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-typicons-pack</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-fontawesome-pack</artifactId>
<version>2.1.1</version>
</dependency>
If you are using Gluon SceneBuilder (which obviously is a must ) you must import the libraries into it also , so it works .