public final class GridBag extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GridBag.Anchor |
static class |
GridBag.Constraints
Utility class to handle
GridBagConstraints. |
static class |
GridBag.Fill |
| Modifier and Type | Method and Description |
|---|---|
static Insets |
insets(int uniValue)
Returns new
Insets with a uniform value for all directions (top, bottom, left, right). |
static Insets |
insets(int horizontal,
int vertical)
Returns new
Insets with different values for horizontal (left, right)
and vertical (top, bottom) directions. |
static Insets |
insets(int top,
int left,
int bottom,
int right)
Returns new
Insets with individual values for each direction (top, left, bottom, right). |
static GridBagLayout |
layout()
Convenience method:
Returns a new instance of
GridBagLayout. |
public static GridBagLayout layout()
GridBagLayout.public static Insets insets(int uniValue)
Insets with a uniform value for all directions (top, bottom, left, right).public static Insets insets(int horizontal, int vertical)
Insets with different values for horizontal (left, right)
and vertical (top, bottom) directions.Copyright © 2025 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.