Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.;

Method Detail

### 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.;

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD