Class VerticalLayout
java.lang.Object
org.jdesktop.swingx.AbstractLayoutManager
org.jdesktop.swingx.VerticalLayout
- All Implemented Interfaces:
LayoutManager, Serializable
- Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource, JXLoginPane.LoginPaneLayout
Organizes components in a vertical layout.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a layout without a gap between components.VerticalLayout(int gap) Creates a layout with the specified gap between components. -
Method Summary
Modifier and TypeMethodDescriptionintgetGap()The current gap to place between components.voidlayoutContainer(Container parent) preferredLayoutSize(Container parent) voidsetGap(int gap) The new gap to place between components.Methods inherited from class AbstractLayoutManager
addLayoutComponent, minimumLayoutSize, removeLayoutComponent
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
gap
private int gap
-
-
Constructor Details
-
VerticalLayout
public VerticalLayout()Creates a layout without a gap between components. -
VerticalLayout
public VerticalLayout(int gap) Creates a layout with the specified gap between components.- Parameters:
gap- the gap between components
-
-
Method Details
-
getGap
public int getGap()The current gap to place between components.- Returns:
- the current gap
-
setGap
public void setGap(int gap) The new gap to place between components.- Parameters:
gap- the new gap
-
preferredLayoutSize
-
layoutContainer
-