GridLayout documentation

The GridLayout constructor javadoc says:

 * Constructor for grid of given size (number of cells). Note that grid's
 * final size depends on the items that are added into the grid. Grid grows
 * if you add components outside the grid's area.

However, the size only grows when components are added with the addComponent(Component) method, not with the addComponent(Component, int, int) or addComponent(Component, int, int, int, int) methods.

I would prefer to change the implementation of the addComponent methods so that the grid is always grown to include the end row and column for the newly added component.