nahi/jrubyfx — pull request #6 by byteit101 (2012-12-21 02:44:44+00:00)
Title: FXML support DSL and so much more

I came across this repository last week and was impressed that I could use JavaFX with JRuby, and started hacking on it a bit so I could use FXML. Maybe just a bit too much...

So what does this include?
* Rakefile instead of ant
* Bonus: no more ant classpath bugs! Fixes issue #4 and issue #5
* Pure Ruby, no more java
* Which required a hack in and of itself because of some JRuby bugs, but JavaFXImpl (Which works marvelously well at least in my usage) can be deleted when those bugs are fixed (multiple arguments to newInstance)
* A DSL for creating FXML controllers in ruby
* `fx_id :symbol` associates an `@symbol` with an fx:id in fxml documents
* `fx_type_handler :name do .. end` binds to an FXML controller action of type _type_
* Support for multiple FXML files in one controller
* Building a jar of the currently running app (no need for command line `rake`)
* The 'magic' JavaFX DSL from @enebo in pull request #3
* Separated the java_import's from the with/build/listener
* with/build/listener is the most complete part of the original code. I have not touched it
* Can load any FXML file relative to anywhere
* Fully commented Demo.rb file as a getting started guide.
* Gemspec so it can be installed as a gem

And probably a few other things I forgot to mention...
Feedback appreciated, i'm sure I missed something, though I am using it for several other projects (Like https://github.com/byteit101/rubyfx-dialogs) so I may catch it also.