Java Reference
In-Depth Information
Figure 17.2 The result of application GridBagFrameBad
sketch the desired layout in Figure 17.3. Only the necessary columns and rows
!
are introduced. Recall that the columns and rows are not explicitly defined by the
user. They are computed by the layout manager from dimensions and locations of
the embedded components. The figure also shows the weights given to the columns
and rows. The first column gets weight 2
.
0, the second and third ones both have
2.0
1.0
1.0
4.0
0
1
2
0
B
2.0
A
1
E
1.0
D
2
C
F
1.0
4.0
Figure 17.3 A sketch of the desired layout that reflects the column-row structure implicitly
used by the layout manager. The resulting 3
3 grid is shown by dashed lines. The weights
are shown at the top and left. The sums of the column and row weights are shown in
bold
×
Search WWH ::




Custom Search