Scanner scanner = new Scanner();
scanner.scan(folderField.getText(), extField.getText(), searchField.getText());
The lines above are everything that is found in searchButtonActionPerformed. And here's the result, showing the source structure, running application, and output in the IDE's Output window:
And then I generated some Groovydoc, which clearly shows that my Groovy and Java are equal partners (since, in fact, they're both Java):
Well, this is all obvious since, as Jeremy Rayner says in his Javalobby interview, "Groovy is just an implementation detail of your Java APIs". In this context, I'm seeing Groovy more as a programming style than a separate language. In the same way as you can choose to use generics, if you like, or not, you can choose to use Groovy, or not. But at the end of the day you'll still have Java and your user will not care whether you've used generics or whether you've used Groovy. It's just an implementation detail.
Next, it would be interesting to port this to the NetBeans Platform. Is there anyone out there who is using Groovy on the NetBeans Platform? That would be a cool thing to play with and should be completely possible.