Skip to: Site menu | Main content

Groovy 

      Download | Documentation | Developers | Community

An agile dynamic language for the Java Platform

SwingBuilder.gridBagLayout Add comment to Wiki View in Wiki Edit Wiki page Printable Version

(Automatically generated from BeanInfo)

Generated Object

A java.awt.GridBagLayout is returned, unless the user passes in a subclass of GridBagLayout as the value argument, in which case the value argument is returned.

Attributes

Declared in java.awt.GridBagLayout

  • layoutDimensions <int[][]>
  • layoutOrigin <Point>
  • layoutWeights <double[][]>

Events

Content

Usage

Examples

swing.panel() {
    gridBagLayout()

    label(text:"Hello", constraints:gbc(gridx:0,gridy:0,gridwidth:GridBagConstraints.REMAINDER, fill:GridBagConstraints.HORIZONTAL, insets:[10,10,10,10]))

    button(text:"Click me" constraints:gbc(gridx:0,gridy:1))
}