uk.org.redfelineninja.awt
Class LabeledPairLayout
java.lang.Object
|
+--uk.org.redfelineninja.awt.LabeledPairLayout
- All Implemented Interfaces:
- java.awt.LayoutManager
- public class LabeledPairLayout
- extends java.lang.Object
- implements java.awt.LayoutManager
This Lays out components as pairs, it is much more pleasant than a
GridBagLayout.
Typical uses might be in options dialog.
Add methods should be given two parameters add( Component, String )
where String takes either label or field.
- Author:
- Steve Wilson (code), Sun Microsystems.
, Daniel Thompson (doc comments)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledPairLayout
public LabeledPairLayout()
addLayoutComponent
public void addLayoutComponent(java.lang.String s,
java.awt.Component c)
- Specified by:
addLayoutComponent
in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container c)
- Specified by:
layoutContainer
in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container c)
- Specified by:
minimumLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container c)
- Specified by:
preferredLayoutSize
in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component c)
- Specified by:
removeLayoutComponent
in interface java.awt.LayoutManager