GridLayout divides the space available for widget placement into a number of equally sized cells arranged in the form of a grid. The number of rows and columns are specified through the constructor while instantiating
GridLayout class has only one constructor, which is of the form
int rows, int columns). In the current version, the number of rows can be zero, in which case, the appropriate number is derived from the number of components in the container and the number of columns. As a matter of fact, the
layoutContainer method of this class checks to see if the specified number of rows and columns are sufficient to accommodate all components in the container, and if required, sets the number of rows to the ...