Class VerticalLayout

All Implemented Interfaces:
LayoutManager, Serializable
Direct Known Subclasses:
BasicTaskPaneContainerUI.VerticalLayoutUIResource, JXLoginPane.LoginPaneLayout

@JavaBean public class VerticalLayout extends AbstractLayoutManager
Organizes components in a vertical layout.
See Also:
  • 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

      public Dimension preferredLayoutSize(Container parent)
    • layoutContainer

      public void layoutContainer(Container parent)