Using the GridLayout Manager

GridLayout places all components on the container in a grid specified by a row and column. GridLayout automatically expands all components to completely fill the cell. Each cell will be the same size, thus all components placed on the container will be the same size (see Figure 12.5).

Figure 12.5. GridLayout displaying components within a defined set of rows and columns.

When to Use GridLayout

Use GridLayout when you want to have all the components the same size despite the size of the container. For example, when presented with a user interface that resembles a piece of graph paper or a spreadsheet, the GridLayout ...

Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.