Package org.jdesktop.swingx
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 TypeMethodDescriptionint
getGap()
The current gap to place between components.void
layoutContainer
(Container parent) preferredLayoutSize
(Container parent) void
setGap
(int gap) The new gap to place between components.Methods inherited from class org.jdesktop.swingx.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
-