@Override
public void addLayoutComponent(Component comp, Object constraints) {
if (constraints == null || !(constraints instanceof FormConstraint)) {
constraints = FormConstraint.cellXY(0, gridHeight);
}
FormConstraint c = (FormConstraint) constraints;
resizeGridToFit(c.x + c.width, c.y + c.height);
gridWidth = Math.max(c.x + c.width, gridWidth);
gridHeight = Math.max(c.y + c.height, gridHeight);
grid[c.x][c.y] = new GridElement(c, comp);
columns = getColumnSizes();