Core Java Volume I--Fundamentals (9th Edition): 1 (Core Series) by Cay S. Horstmann & Gary Cornell

Core Java Volume I--Fundamentals (9th Edition): 1 (Core Series) by Cay S. Horstmann & Gary Cornell

Author:Cay S. Horstmann & Gary Cornell [Horstmann, Cay S.]
Language: eng
Format: azw3
Publisher: Pearson Education
Published: 2012-11-26T16:00:00+00:00


9.6.1. The Grid Bag Layout

The grid bag layout is the mother of all layout managers. You can think of a grid bag layout as a grid layout without the limitations. In a grid bag layout, the rows and columns can have variable sizes. You can join adjacent cells to make room for larger components. (Many word processors, as well as HTML, provide similar capabilities for tables: You can start out with a grid and then merge adjacent cells as necessary.) The components need not fill the entire cell area, and you can specify their alignment within cells.

Consider the font selector of Figure 9.29. It consists of the following components:

• Two combo boxes to specify the font face and size

• Labels for these two combo boxes

• Two checkboxes to select bold and italic

• A text area for the sample string



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.