Replies: 3 comments 10 replies
-
@vsquared , after the latest Processing release I downloaded it and built a dev version of py5 using the new core.jar file because I also wanted to test out FX2D. I didn't see a difference in FX2D behavior, then I looked at the code change and saw it was just for FX2D when run through the Processing PDE. Nothing about core.jar changed, so even after I do the next py5 release, FX2D will work the same as previous releases. That doesn't mean that I am not inspired to offer better support for FX2D in py5. I'd like to see it work also, and have been looking into what needs to be done for that. When you use FX2D in the PDE, what do you see that is different in the latest Processing release compared to previous releases? |
Beta Was this translation helpful? Give feedback.
-
I'm sorry to hear that; things didn't work out as I had hoped. In the beginning my efforts to bring JavaFX into the Processing realm was pretty limited. The code writers included only two or three of the seven JavaFX modules so about all I could do was some basic graphics, which was one of the modules they did include. What got to me was that it was intentional; they had comments in the code stating that they wouldn't add the rest of the modules until there was some very good reason to add them. I complained about in the forum and glv told me that I could change the code in my own fork of the code and re-compile it for my own personal use, which is what I did. This allowed me to use just about any control that JavaFX had to offer, but it did me no good to post any of that in the forum because I was the only one that could run the demos. Then someone discovered that if they added the jar files to their sketch they could run the code too. But, the user had to go to the trouble of finding the jars (they are included in the Processing/libraries/javafx/library/macos-xxxx folder) and move them to their sketch folder and they had to do that every time they wanted to create a JavaFX sketch. Not too many users wanted to mess with all of that. Furthermore, with every new IDE release I had to modify the source code and re-compile it in order to keep using JavaFX. All of that occurred under Ben Fry who didn't want to add the additional modules for reasons I never understood. Apparently the leadership changed and Sable Ralph helped me issue a pull request to add the modules and they were finally added. Now in the last editor I can run my old demos without modifying the source code, with the exception of one very important demo which showed many of the JavaFX controls all in one sketch. It won't run in my last modified editor either and I haven't taken the time to track down the error message. I truly do not understand the reluctance to support JavaFX. The graphics are far superior with FX2D compared to the default renderer and the controls are a lot slicker than Swing in my opinion. |
Beta Was this translation helpful? Give feedback.
-
I can see how that would be frustrating. I agree that JavaFX is a good renderer and obviously a lot of work as been put into making JavaFX work with Processing. It's too bad that it doesn't get the same level of attention and support as the other renderers.
I thought JavaFX was available through the PDE's Library Manager? When I install it through there, I am able to use JavaFX with the PDE. The stuff in the
Right, they have been added. And I do want to see what else I can do to make the FX2D renderer easier to use with py5 and Processing. I am able to have conversations with Sable Ralph and other Processing contributors, and will bring up FX2D to them to see what's up. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Previously some of us had difficulty running JavaFX code. All the JavaFX modules were added to the last version of the Processing editor (version 4.3.2) so theoretically previous issues should be resolved. I'm curious if we can all now run this demo:
Beta Was this translation helpful? Give feedback.
All reactions