Index: SwingDemo.groovy
===================================================================
RCS file: /scm/cvspublic/groovy/groovy-core/src/test/groovy/swing/SwingDemo.groovy,v
retrieving revision 1.3
diff -r1.3 SwingDemo.groovy
17a18,23
> 
> 
>             neww = action(name:'New', closure:{ println("activated 'new' action!") })
> 
>             open = action(name:'Open', closure:{ println("activated 'open' action!") })
> 
20,25c26,30
<                     menuItem() {
<                         action(name:'New', closure:{ println("clicked on the new menu item!") })
<                     }
<                     menuItem() {
<                         action(name:'Open', closure:{ println("clicked on the open menu item!") })
<                     }
---
> 
>                     menuItem( action: neww )
> 
>                     menuItem( action: open )
> 
63a69
>                     button( constraints: BorderLayout.SOUTH, action: neww )

