require 'java'
require 'jrubyfx'
fxml_root File.dirname(__FILE__)

class App < JRubyFX::Application
  def start(stage)
    with(stage, width: 800, height: 600, title: 'Browser') do
      fxml AppController
      show
    end
  end
end

class AppController
  include JRubyFX::Controller
  fxml "browser.fxml"
end

App.launch
