Project

swt

0.03
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Contains everything required to write cross-platform desktop applications with JRuby and SWT.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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

History

4.6 Removed MacOS 32 bit support (SWT project doesn't seem to support it any more)