Hi Maarten, welcome to Pivot, under our example subproject (for example here: http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/scripting/ ), there is a package org.apache.pivot.examples.scripting where we have some minimal scripting samples from Javascript (that embedded in the JVM, Groovy, and Scala). Note that it's an eclipse project with Scala support but not Groovy (don't remember why, I have to look ...), so to make it work you have to add the Groovy nature to it, then run the groovy_window.bxml for example with our Pivot eclipse plugin. In the meantime, you can do the same with javascript_window.bxml, java_window.bxml, and scala_window.bxml . Note that the Java and Scala version have a related class to simplify things. Probably a Groovy class could be done in the same way, really don't remember why it's missing here ...
In this case, scripting was focused on using scripting languages inside Pivot bxml files. As you know, in Pivot the preferred way to build user interfaces is with bxml files, but of course all could be done even with code (scripting code or normal). And probably this could be a good way even in your case, to decouple the UI from the code. But I have never tried to make it work from a Groovy script, could be interesting. To further improve our interoperability with other JVM languages, we have some secondary projects at Apache-Extras, like this: http://code.google.com/a/apache-extras.org/p/pivot-multilang/ but due to the lack of time, it's near-empty ... If you have some to share, please tell us. For questions, etc we are here ... thanks for now. Bye, Sandro
