1) Go to Help > Eclipse Marketplace
2) Search for JavaFX there
3) Install e(fx)clipse plugin
4) Download the JavaFX library from https://gluonhq.com/products/javafx/
and unpack the downloaded archive somewhere (in this tutorial it'll be "C:Program FilesJavajavafx-sdk-18.0.2lib")
5) Go to Window > Preferences > JavaFX > JavaFX 11+ SDK field
and enter the JavaFX library location where you unpacked it:
"C:Program FilesJavajavafx-sdk-18.0.2lib"
After creating a new Java Project:
Open the Java Build Path property (right click the Project, select Build Path > Configure Build Path...)
Open the Libraries tab, select the JRE System Library and "Remove" it. The system library may be named something like "JRE System Library[JavaSE-1.8]".
Click "Add Library...", in the next popup, select "Java System Library" (should be the first choice), and on the next screen "Workspace default JRE (jre[VERSION#])" (should be the last radio button), and "Finish".