Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created August 9, 2013 17:48
Show Gist options
  • Save supermomonga/6195588 to your computer and use it in GitHub Desktop.
Save supermomonga/6195588 to your computer and use it in GitHub Desktop.
require 'java'
require 'jrubyfx'
class HelloJRubyFX < JRubyFX::Application
def start(stage)
with(stage, width: 800, height: 600, title: 'Hello JRubyFX') do
layout_scene do
web_view do |v|
v.engine.load "http://google.com/"
end
end
show
end
end
end
HelloJRubyFX.launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment