How to create standl alones applications with Ruby

Hi all

In .NET, Eclipse/SWT, Interface Builder (mac os X) it is possible to
create a new form, and use drag/drop controls such as textboxes,
comboboxes, lists, datagrids, etc. And Also create reports in a similar
way, for example with Crystal Reports.

What tools are available with Ruby to create stand alone application
using forms and reports, where I can drag and drop controls.

thanks
jsn

On 24/07/06, Jose P. [email protected] wrote:

thanks
jsn

You can use Glade which is a visual designer for GTK/Gnome
applications. The Ruby/Gnome2 bindings can then use the glade file to
build up your app GUI.

Farrel

And don’t forget about the Qt Designer for Qt/KDE applications.

Is it possible to combine for example a SWT Eclipse form in java, and
Ruby?

thanks
jsn

Matthew H. wrote:

And don’t forget about the Qt Designer for Qt/KDE applications.

On Tue, Jul 25, 2006 at 01:57:14AM +0900, Jose P. wrote:

Is it possible to combine for example a SWT Eclipse form in java, and
Ruby?

I haven’t messed around with this but using JRuby I’d think so. Could
use
SWT/Eclipse framework for interface and Ruby for back end processing.

On 7/24/06, Jose P. [email protected] 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.

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs