Package jmri.util.javaworld
Class GridLayout2
- java.lang.Object
-
- java.awt.GridLayout
-
- jmri.util.javaworld.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)
-
-
-
Constructor Detail
-
GridLayout2
public GridLayout2()
-
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 interfacejava.awt.LayoutManager
- Overrides:
preferredLayoutSize
in classjava.awt.GridLayout
-
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSize
in interfacejava.awt.LayoutManager
- Overrides:
minimumLayoutSize
in classjava.awt.GridLayout
-
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Specified by:
layoutContainer
in interfacejava.awt.LayoutManager
- Overrides:
layoutContainer
in classjava.awt.GridLayout
-
-