Skip to content

Instantly share code, notes, and snippets.

@donv
Created June 16, 2010 21:07
Show Gist options
  • Save donv/441273 to your computer and use it in GitHub Desktop.
Save donv/441273 to your computer and use it in GitHub Desktop.
macbeth:aifudis.operator uwe$ jruby -J-XstartOnFirstThread -S jirb
>> require 'lib/swt-x86_64-darwin.jar'
=> true
>> require 'java'
=> true
>> import org.eclipse.swt.widgets.Shell
=> Java::OrgEclipseSwtWidgets::Shell
>> import org.eclipse.swt.SWT
=> Java::OrgEclipseSwt::SWT
>> s = Shell.new
=> #<Java::OrgEclipseSwtWidgets::Shell:0x11a4ea4f>
>> l = org.eclipse.swt.widgets.Label.new s, SWT::NONE
=> #<Java::OrgEclipseSwtWidgets::Label:0x4f09dcbb>
>> l.image
ArgumentError: wrong # of arguments(0 for 2)
from (irb):7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment