JRubyFXはJavaFxをRubyっぽく書けますが、 そこにプラスしてfxmlを使うとよりGUI開発が簡単になります。 ここではJRubyFXでfxmlを使う方法をメモとして残します。 まずはJRubyでfxmlをロードする Scene Builderを使って、適当にhello.fxmlというファイルを作成したあと、 JRubyFXにfxmlを読み込まそうとすると以下のようになります。 require 'jrubyfx' require 'jrubyfx-fxmlloader' fxml_root File.dirname(__FILE__) class Main < JRubyFX::Application def start(stage) with(stage, title: "sample", fxml: SimpleController ) do end.show end en