Has anyone tried mixing JavaFX
and JRuby
? I've built a JRuby desktop application with a Swing GUI (100% JRuby) and I'm toying with the idea of replacing the GUI with JavaFX for a more slick feel.
To fit with my current application, I want to implement an MVC pattern with the View being JavaFX and the Controller and Model being Ruby.
There is now a JRubyFX gem from the JRuby project for working with JavaFX 2.0. It supports both JavaFX in code and FXML. Most things should work, but it has a few issues that are documented in the Readme.
It will be much easier when JavaFX 2.0 comes out.
As of java 7u6 javafx is now part of the java language and available by default for Linux, Mac, and Windows. You can program this with any language on the jvm so now you should be able to code your application very easily.
JavaFX script was dropped, but JavaFX the technology is bigger and better than ever. Everything is now included in the API directly, so using Groovy or JRuby provide a great scripting framework for using JavaFX.
Happy Coding!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With