15 Apr 2004 06:11
Re: swing example
On 14 Apr 2004, at 12:19, steb wrote:
> Hi,
>
>>> def createButton(name){
>>> jbtn = new JButton(name)
>>> //?? doesn't work (generates a
> java.lang.IncompatibleClassChangeError)
>>> jbtn.actionPerformed = buttonPressed //(1)
>>
>> Hmmm I'm not sure why that doesn't work. Certainly this will
>>
>> jbtn.actionPerformed = { buttonPressed(it) }
> In this case, the exception arises when "btn2" is pressed as the
> function
> buttonPressed cannot be found
> groovy.lang.MissingMethodException: No such method:
> buttonPressed
>
>
>> Would you mind creating a JIRA issue about this bug?
> The time to learn how to do it! But is this really a bug or just a
> trivial
> error due to my limited knowledge!?
I think this is a bug.
James
-------
http://radio.weblogs.com/0112098/
RSS Feed