com.togethersoft.openapi.util.ui
Class GridBagLayoutHelper
- public class GridBagLayoutHelper
Presents two static methods : Add which add component to container with some constraints,
and GetDefaultConstraints which return predefined constraints.
- Author:
- TogetherSoft
| Method Summary |
static void | Add(Container to, Component what, GridBagConstraints constraints) Adds component what to container to with some
constraints constraints. |
static GridBagConstraints | GetDefaultConstraints() Returns predefined GetDefaultConstraints :
insets = (2,2,2,2)
anchor = CENTER;
fill = BOTH;
gridwidth = REMAINDER;
gridx = RELATIVE;
gridy = RELATIVE;
weighty = 0.;
weightx = 0.;
|
Add
public static void Add(Container to, Component what, GridBagConstraints constraints)
- Adds component
what to container to with some
constraints constraints.
GetDefaultConstraints
public static GridBagConstraints GetDefaultConstraints()
- Returns predefined GetDefaultConstraints :
insets = (2,2,2,2)
anchor = CENTER;
fill = BOTH;
gridwidth = REMAINDER;
gridx = RELATIVE;
gridy = RELATIVE;
weighty = 0.;
weightx = 0.;