# How to create standl alones applications with Ruby

**URL:** <https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608>\
**Category:** Ruby\
**Created:** [July 24, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608 "2006-07-24T14:08:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/1 "2006-07-24T14:08:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/2 "2006-07-24T14:22:01Z")

</div>

On 24/07/06, Jose P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/3 "2006-07-24T17:36:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/4 "2006-07-24T18:56:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/5 "2006-07-24T19:17:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 24, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/6 "2006-07-24T19:17:14Z")

</div>

On 7/24/06, Jose P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![jsn1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Post date:** [July 25, 2006, 1:34am UTC](https://www.ruby-forum.com/t/how-to-create-standl-alones-applications-with-ruby/99608/7 "2006-07-25T01:34:57Z")

</div>

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.
