Before you can do anything, make sure you have JavaFX installed on your system. Some JDK distributions include JavaFX, most do not. Download the OpenJFX library from The OpenJFX website, and set it up on your system.

If you want to use JavaFX in your LuciadLightspeed application, you must start from a TLspFXView. A TLspFXView is the JavaFX-equivalent of the original Swing-based Lightspeed view. You can access all visualization and controller functionality that the LuciadLightspeed API already offered for the Swing-based Lightspeed view.

See the JavaFX sections in the first 2D/3D map application tutorial to get you started with JavaFX.