7.2.5 Noparent - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
7.2.5 Noparent
Provided by: SwingBuilderChild nodes are always attached to their parents, there are times when you explicitly don't want that to happen. If that is the case then wrap those nodes withnoparent
panel { gridLayout(cols: 2, rows: 2) button('Click 1', id: b1') button('Click 2', id: b2') button('Click 3', id: b2') button('Click 4', id: b4') // the following line will cause the buttons // to be reordered // bean(button1, text: 'Click 11') noparent { // this is safe, buttons do not change places bean(button1, text: 'Click 11') } }