(Automatically generated from BeanInfo)
A java.awt.GridLayout is returned, unless the user passes in a subclass of GridLayout as the value argument, in which case the value argument is returned.
import groovy.swing.SwingBuilder
import java.awt.GridLayout
import javax.swing.JFrame
SwingBuilder swing = new SwingBuilder()
swing.frame(defaultCloseOperation: JFrame.EXIT_ON_CLOSE, pack: true, show: true) {
panel(layout: gridLayout(cols: 2, rows: 5)) {
(0..<10).each {
println it
swing.label it.toString()
}
}
}
|