There are many posts in the forum using JavaFX with Processing.
JavaFX code works with certain configurations but not with others.
These configurations may include:
Version of Processing
Operating system and version
Modification to the source code to add modules
Latest build of Processing has modifications (see above) added.
Adding JavaFX jar files to sketch
Adding import statements
JavaFX version if applicable
Anything I missed…
All the topics on this can subject in this forum can complicate the journey for a new user and we need to stay on point and communicate clearly when discussing these.
I have managed to sort all of these JavaFX issues for everything but a macOS.
I rarely use JavaFX if at all but have tried some of the examples and overcame any hurdles running these.
A new use will certainly have challenges.
I suggest one clear concise communication on this in:
It does run on Windows 10 Pro 22H2 with Processing 4.3.2 with some additions.
It works if I import JavaFX and drag and drop the 7 jar files (from the modules folder) onto the sketch window to add them (a folder called code is created and contains these):
It now works like it’s supposed to on Mac; so far I have only found one of my old files that won’t run, for reasons I don’t understand. This is without drag 'n dropping jar files. In the beginning I had to modify the editor source code to include all seven modules in order to use JavaFX which is why I made the pull request to add all of them. I also have Linux and Windows 11 systems that I rarely use and have discovered that I’m unable to run the JavaFX multiplication table demo after installing the most recent editor on each. In both cases the demo will run after drag 'n dropping the seven JavaFX module jar files onto the open sketch. That’s a problem that should be addressed. In my opinion we are missing out on using a good renderer and a nice set of JavaFX controls; graphics are a lot sharper with FX2D. For now a bug report seems to be indicated. I would like to see more input from other forum members on their experiences just to make sure they are seeing the same thing before filing the report.