'How to use external libraries such as TilesFX

I've really struggled to find an explanation of how I utilise TilesFX and other external libraries. I've gone and got TilesFX using a Gradle build. How can I actually use an external library? For example, TilesFX has a demo launcher, which I am struggling to launch. I've currently got TilesFX in a standard IntelliJ JavaFX project, so just a Main class which uses FXML loader to open the standard "Hello World" stage/window.

For example, in trying to run the Demo I have imported the following:

import eu.hansolo.tilesfx.Demo;
import eu.hansolo.tilesfx.DemoLauncher;

But when I try to launch, I get nothing. I really just don't know how to utilise them.

external library

Any help on how I can use these libraries? Or are there any useful guides I've failed to find?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source