# :: Reference :: Groups :: Column and row groups are used to specifiy that a set of columns or rows will get the same width or height. This is an essential feature to implement symmetric, and more generally, balanced design. ## Example In the following example it is ensured that columns 2 and 4 get the same width, rows 1 and 4 get the same height as well as rows 2 and 3:
    FormLayout layout = new FormLayout("p, d, p, d", "p, p, p, p");
    layout.setColumnGroups(new int[][]{ {2, 4} });
    layout.setRowGroups   (new int[][]{ {1, 4}, {2, 3} });
(c) 2011 JGoodies |  |