Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Table of Contents
maxLevel3
indent0px

(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

Code Block
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))
}