From: Charles O Nutter Date: 2006-07-25T08:33:03+09:00 Subject: Re: How to create standl alones applications with Ruby ------=_Part_162260_5238681.1153783979117 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline JRuby ought to work fine with any basic Java component library. We have examples for Swing in the distro, but basically whatever code you'd use to call Java you can translate directly to Ruby. require 'java' include_class "javax.swing.JFrame" include_class "javax.swing.JButton" f = JFrame.new("my frame") b = JButton.new("my button") f.content_pane.add(b) f.pack f.show It's pretty simple, and actually makes Swing pretty entertaining to use. It should work just as well with SWT. On 7/24/06, brabuhr@gmail.com wrote: > > On 7/24/06, Jose Pepe wrote: > > Is it possible to combine for example a SWT Eclipse form in java, and > > Ruby? > > JRuby has some examples using swing; I don't know if anyone has tried > using SWT yet. > > RubyCLR can use Windows.Forms. > > -- Charles Oliver Nutter @ headius.blogspot.com JRuby Developer @ www.jruby.org Application Architect @ www.ventera.com ------=_Part_162260_5238681.1153783979117--