Skip to content

Instantly share code, notes, and snippets.

@jashkenas
Created Nov 30, 2008
Embed
What would you like to do?
def display_in_an_applet
JRUBY_APPLET.setSize(@width, @height)
JRUBY_APPLET.background_color = nil
JRUBY_APPLET.double_buffered = false
JRUBY_APPLET.add self
JRUBY_APPLET.validate
# Add the callbacks to peacefully expire.
JRUBY_APPLET.on_stop { self.stop }
JRUBY_APPLET.on_destroy { self.destroy }
self.init
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment