February 2014
Beginner
1248 pages
62h 25m
English
The GridLayout layout manager divides the container into a grid so that components can be placed in rows and columns. Class GridLayout inherits directly from class Object and implements interface LayoutManager. Every Component in a GridLayout has the same width and height. Components are added to a GridLayout starting at the top-left cell of the grid and proceeding left to right until the row is full. Then the process continues left to right on the next row of the grid, and so on. The application of Figs. 12.43–12.44 demonstrates the GridLayout layout manager by using six JButtons.
Read now
Unlock full access