Sha256: 89caf9650f9662d62d385bb79cf4a3d1ffb0a19ff2e19710569c8a800b5136e7

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require "java"
require File.dirname(__FILE__) + "/../lib/glimmer"

class HelloWorld
	include_package 'org.eclipse.swt'
	include_package 'org.eclipse.swt.layout'
	
	include Glimmer

	def launch
		@shell = shell {
			text "SWT"
      label {
        text "Hello World!"
      }
		}
    @shell.open
	end
end

HelloWorld.new.launch

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glimmer-0.1.3 samples/hello_world.rb