#1 new
bakkdoor

Name attribute

Reported by bakkdoor | October 7th, 2008 @ 01:31 PM | in v0.2

all components should have a name attribute, which can be set by calling the constructor with a :name option.

e.g.

button = Button.new("OK", :name => :okButton, :belongs_to => mainFrame)

when also specifying the :belongs_to option, the component will be added to the specified container as well (as before).

this should additionally then be possible:

puts button.name # => "okButton"

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RSwing - Swing wrapper for JRuby

RSwing is a wrapper of the Swing GUI-Framework of the Java Platform for JRuby.
The goal is to provide a ruby-ish wrapper library to Swing, which makes it feel more like an actual ruby library rather than just a plain interface to the java classes.

People watching this ticket

Pages