Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone Tried Mixing JavaFX and JRuby?

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.

like image 369
Samuel Holloway Avatar asked May 13 '09 20:05

Samuel Holloway


3 Answers

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.

like image 174
byteit101 Avatar answered Oct 14 '22 22:10

byteit101


It will be much easier when JavaFX 2.0 comes out.

like image 32
JimClarke Avatar answered Oct 14 '22 22:10

JimClarke


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!

like image 23
geocode Avatar answered Oct 14 '22 22:10

geocode