From: Dave Thomas Date: 2002-11-09T00:44:18+09:00 Subject: Re: Can JRuby invoke Java APIs?? GBanschbach@sandata.com writes: > ....yes....their web site doesn't say much..... .... I don't > know.....but it might be pretty powerfull to be able to use Swing or > some of the many libraries which have been written for java if the > syntax is not too awkward. Here's the Swing example from the JRuby download: require 'java' module Swing include_package "javax.swing" end frame = Swing::JFrame.new("Hello Swing") label = Swing::JLabel.new("Hello World") frame.getContentPane().add(label) frame.setDefaultCloseOperation(Swing::JFrame::EXIT_ON_CLOSE) frame.pack(); frame.setVisible(true); Cheers Dave