public final class HeaderGroup
extends java.lang.Object
The intent here is that, rather than adding the components under a header
to a JPanel or other container, you associate them with a HeaderGroup
instead (in much the same way that ButtonGroup
works
for toggle buttons). This gives you the freedom to have a single layout
across all collapsable regions.
Constructor and Description |
---|
HeaderGroup(Header header)
Creates a HeaderGroup for the specified header component.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.awt.Component c)
Adds a component to this header group.
|
public HeaderGroup(Header header)
header
- a header component. Must not be null.public void add(java.awt.Component c)
Header
is collapsed.c
-