Class GBC

All Implemented Interfaces:
Serializable, Cloneable

public class GBC extends GridBagConstraints
A helper class for setting line-wise GridBagLayouts Do not use this if you need a Component to span two rows
See Also:
  • Method Details

    • std

      public static GBC std()
      Returns:
      a standard GridBagConstraints, anchored to GridBagConstraints.WEST
    • eol

      public static GBC eol()
      Returns:
      a GridBagConstraints that will have a component fill a line
      See Also:
    • eop

      public static GBC eop()
      Returns:
      a GridBagConstraints that will have a component fill a line, and have a 10 pixel inset to the south (ie. a paragraph)
    • anchor

      public GBC anchor(int a)
      change the anchor of this GridBagConstraints
      Parameters:
      a - the int anchor to set
      Returns:
      this
      See Also:
    • insets

      public GBC insets(int left, int top, int right, int bottom)
      change the insets of this GridBagConstraints
      Parameters:
      left -
      top -
      right -
      bottom -
      Returns:
      this
      See Also:
    • fill

      public GBC fill()
      set this GridBagConstraints so that the corresponding Component will fill horizontally and vertically.
      Returns:
      this
    • fill

      public GBC fill(int value)
      set this GridBagConstraints so that the corresponding will fill according to the
      Parameters:
      value - either GridBagConstraints.HORIZONTAL, GridBagConstraints.VERTICAL or GridBagConstraints.BOTH and
      Returns:
      this
    • pad

      public GBC pad(int padx, int pady)
      Set the padding of this GridBagConstraints
      Parameters:
      padx - the int ipadx to set
      pady - the int ipady to set
      Returns:
      this
      See Also:
    • gridx

      public GBC gridx(int gridx)
      Set the gridx of this GridBagConstraints
      Parameters:
      gridx - the int gridx to set
      Returns:
      this
      See Also:
    • gridy

      public GBC gridy(int gridy)
      Set the gridy of this GridBagConstraints
      Parameters:
      gridy - the int gridy to set
      Returns:
      this
      See Also:
    • gridheight

      public GBC gridheight(int height)
      Set the gridheight of this GridBagConstraints
      Parameters:
      height - the int gridheight to set
      Returns:
      this
      See Also:
    • gridwidth

      public GBC gridwidth(int width)
      Set the gridwidth of this GridBagConstraints
      Parameters:
      width - the int gridheight to set
      Returns:
      this
      See Also:
    • weightx

      public GBC weightx(double weight)
      Set the weightx of this GridBagConstraints
      Parameters:
      weight - the double weightx to set
      Returns:
      this
      See Also:
    • weighty

      public GBC weighty(double weight)
      Set the weighty of this GridBagConstraints
      Parameters:
      weight - the double weighty to set
      Returns:
      this
      See Also: