Modifier and Type | Method and Description |
---|---|
void |
add(Widget widget,
java.lang.String... constraints)
adds a widget to this
Layout with optional constraints. |
void |
relayout()
re-layouts this
Layout . |
void |
remove(Widget widget)
removes a widget from this
Layout . |
setEnabled, setVisible
void add(Widget widget, java.lang.String... constraints)
Layout
with optional constraints.
This method adds a widget to this Layout
with optional MigLayout
Component constraints.
widget
- the widget to addconstraints
- the constraints, optionalvoid remove(Widget widget)
Layout
.
widget
- the widget to removevoid relayout()
Layout
.
This method re-layouts all widgets in this layout (which may cause the containing layouts to be re-layouted too.
It is only necessary to call this if widgets are add/removed after a layout has become visible, because upon becoming visible a layout is automatically laid out.