public class LabeledComponentLayout
extends java.lang.Object
implements java.awt.LayoutManager
Constructor and Description |
---|
LabeledComponentLayout() |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
int |
getSpacing() |
boolean |
isStretchable() |
void |
layoutContainer(java.awt.Container parent) |
static void |
main(java.lang.String[] args) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setSpacing(int s) |
void |
setStretchable(boolean enable) |
public int getSpacing()
public void setSpacing(int s)
public boolean isStretchable()
public void setStretchable(boolean enable)
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public static void main(java.lang.String[] args)