Class FlexibleGridLayout

java.lang.Object
java.awt.GridLayout
ece.ing3.java.projet.vue.components.FlexibleGridLayout
All Implemented Interfaces:
LayoutManager, Serializable

public class FlexibleGridLayout extends GridLayout
Grid Layout which allows components of differrent sizes Based on https://www.javaworld.com/article/2077486/core-java/java-tip-121--flex-your-grid-layout.html
Author:
Bogdan Dorohonceanu
See Also:
  • Constructor Details

    • FlexibleGridLayout

      public FlexibleGridLayout()
      Create a new flexible grid with 1 row and no gaps.
    • FlexibleGridLayout

      public FlexibleGridLayout(int rows, int cols)
      Create a new flexible grid with the defined number of rows and columns, and no gaps.
      Parameters:
      rows - Number of rows
      cols - Number of columns
    • FlexibleGridLayout

      public FlexibleGridLayout(int rows, int cols, int hgap, int vgap)
      Create a new flexible grid
      Parameters:
      rows - Number of rows
      cols - Number of columns
      hgap - Horizontal gap between cells
      vgap - Vertical gap between cells
  • Method Details