Class GridLayout2

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

    public class GridLayout2
    extends java.awt.GridLayout
    Grid Layout which allows components of different sizes. From http://www.javaworld.com/javaworld/javatips/javatip121/GridLayout2.java Javaworld article by Bogdan Dorohonceanu.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GridLayout2()  
      GridLayout2​(int rows, int cols)  
      GridLayout2​(int rows, int cols, int hgap, int vgap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void layoutContainer​(java.awt.Container parent)  
      java.awt.Dimension minimumLayoutSize​(java.awt.Container parent)  
      java.awt.Dimension preferredLayoutSize​(java.awt.Container parent)  
      • Methods inherited from class java.awt.GridLayout

        addLayoutComponent, getColumns, getHgap, getRows, getVgap, removeLayoutComponent, setColumns, setHgap, setRows, setVgap, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GridLayout2

        public GridLayout2​(int rows,
                           int cols)
      • GridLayout2

        public GridLayout2​(int rows,
                           int cols,
                           int hgap,
                           int vgap)
    • Method Detail

      • preferredLayoutSize

        public java.awt.Dimension preferredLayoutSize​(java.awt.Container parent)
        Specified by:
        preferredLayoutSize in interface java.awt.LayoutManager
        Overrides:
        preferredLayoutSize in class java.awt.GridLayout
      • minimumLayoutSize

        public java.awt.Dimension minimumLayoutSize​(java.awt.Container parent)
        Specified by:
        minimumLayoutSize in interface java.awt.LayoutManager
        Overrides:
        minimumLayoutSize in class java.awt.GridLayout
      • layoutContainer

        public void layoutContainer​(java.awt.Container parent)
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
        Overrides:
        layoutContainer in class java.awt.GridLayout