Description
Danno first "deprecated" static SwingBuilder.build(Closure) and has now introduced some crazy Groovy metaprogramming code into SwingBuilder as a "workaround" to the bugs caused by his attempts to make SwingBuilder threadsafe (which shouldn't be done and is a major and trouble plagued issue with no JIRA).
static SwingBuilder.build(Closure) was introduced (by me) in Groovy 1.5 and is what I consider the preferred method for using SwingBuilder. It specifically addresses the common case of a user wanting a Swing UI with the minimum code and correct behavior wrt. EDT without having to even know there is one.
It has been in use for more than a year now and is clearly being used by Groovy folks:
http://www.nabble.com/Adding-a-GUI-to-a-program-td20437418.html#a20437418
http://www.nabble.com/SwingBuilding-in-a-real-application--td19274585.html#a19276077
http://www.nabble.com/Behavior-of-action-closure-in-SwingBuilder-td15348599.html#a15348599
and many more...