Sun Certified Programmer for Java 2 Platform
Originally posted by Cherry Mathew:
In the code given there are 10 alloted spaces and u r adding 8 components then it first fills 5 columns of first row and goes to next row and puts the three remaining components are put in the second row.
Cherry
Originally posted by Manfred Leonhardt:
[B]Hi all,
To understand GridLayout you need to look at the code:
Therefore the following:
GridLayout(4,4)
will not divide the screen up into 16 parts! It will divide the screen up into 4 rows. Therefore the following would perform the same:
GridLayout(4,0)
That is why good Java programmers will make sure that the unnecessary parameter is set to zero so that other programmers will know their intent.
Happy programming,
Manfred.[/B]