O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GridLayout

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.

The GridLayout class has only one constructor, which is of the form GridLayout(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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required