From: Nick Sieger Date: 2009-04-27T13:25:30+09:00 Subject: Re: JRuby constructor issue or just me? On Sun, Apr 26, 2009 at 4:49 PM, Andrew S. Townley wrote: > Hi, > > > $ cat $HOME/jbutton.rb > require 'java' > > include_class 'javax.swing.JButton' > > class Foo < JButton >  def initialize(count) >    super() >    self.text = "Foo" >    @count = count >  end > end > > foo = Foo.new Your initialize method requires at least a "count" parameter, but you're not passing any. Do you mean to default it to something? foo = Foo.new(42) should work. /Nick