Hi all, sorry for the late reply. This thread became an issue in processing4-javafx repository: Error trying to import JavaFX classes in Processing 4 · Issue #15 · processing/processing4-javafx · GitHub
The proposed solution (not implemented yet) is for the JAR files in the modules subfolder of javafx library to become available to be imported and used in Processing code. That should make it possible to import any javafx classes.