Class VerticalLayout

    • Field Detail

      • gap

        private int gap
    • Constructor Detail

      • 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 Detail

      • 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 java.awt.Dimension preferredLayoutSize​(java.awt.Container parent)
      • layoutContainer

        public void layoutContainer​(java.awt.Container parent)