(Quick Reference)

7.2.2 Container - Reference Documentation

Authors: Andres Almiray

Version: 1.2.0

7.2.2 Container

Provided by: SwingBuilder

This is a pass through node that accepts any UI component as value. This node allows nesting of child content. It's quite useful when what you need is to embed a custom component for which a node is not available, for example

container(new MyCustomPanel()) {
    label 'Groovy is cool'
}