Skip to content
/ swt Public
forked from danlucraft/swt

Contains everything required to write cross-platform desktop applications with JRuby and SWT.

License

Notifications You must be signed in to change notification settings

redcar/swt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SWT

This gem contains everything required to write cross-platform desktop applications with JRuby and SWT.

Features:

  • Includes all the jar files needed.
  • Selects and loads the correct SWT jar for the platform.
  • Imports of many swt Java classes into a 1-1 mapped Ruby class hierarchy.
  • Examples to get you started. (For more see this SWT cookbook)

Why JRuby/SWT?

  • Fast, compatible Ruby implementation.
  • JRuby and SWT are flawlessly cross-platform.
  • SWT has native widgets (for the most part).
  • SWT powers Eclipse, so there's nothing you need that it doesn't do.
  • You don't need to touch Java! Write everything in Ruby.

Usage

require 'java'
require 'swt'

Running the Example

Linux / windows:

jruby examples/button.rb

On OSX:

jruby -J-XstartOnFirstThread examples/button.rb

About

Contains everything required to write cross-platform desktop applications with JRuby and SWT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published