Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using fxml with jruby

I've seen how to write raw JavaFX code in Java, how to write FXML code in Java, how to write raw JavaFX code in JRuby, but can't seem to find anything on using FXML with JRuby. Is it currently possible to use FXML with JRuby? If so, are there any nice tutorials?

UPDATE: JRubyFX 0.9.1 and later have FXML support

like image 222
byteit101 Avatar asked Aug 04 '26 09:08

byteit101


1 Answers

It is possible to use fxml with jruby.

I couldn't find any tutorials for this so I wrote my first Ruby program. The program demonstrates using fxml with jruby. It is a conversion of an earlier demonstration I wrote to demonstrate using fxml with java.

Output of the ruby version of the program:

jrubyfxmlscreenshot

like image 59
jewelsea Avatar answered Aug 06 '26 21:08

jewelsea