Documentation of 'org.jdesktop.swingx.VerticalLayout' Java class
VerticalLayout
org.jdesktop.swingx

Class VerticalLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.io.Serializable


    @JavaBean
    public class VerticalLayout
    extends java.lang.Object
    Organizes components in a vertical layout.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      VerticalLayout()
      Creates a layout without a gap between components.
      VerticalLayout(int gap)
      Creates a layout with the specified gap between components.
    • 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)
      • addLayoutComponent

        public void addLayoutComponent(java.lang.String name,
                                       java.awt.Component comp)

        This implementation does nothing.

        Specified by:
        addLayoutComponent in interface java.awt.LayoutManager
      • removeLayoutComponent

        public void removeLayoutComponent(java.awt.Component comp)

        This implementation does nothing.

        Specified by:
        removeLayoutComponent in interface java.awt.LayoutManager
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)

        This implementation defers to LayoutManager.preferredLayoutSize(Container).

        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.