| |
e631. Adjusting the Size of a Component in a GridBadLayout Using Internal Padding
With internal padding, you can increase or decrease the minimum size
of a component. For example, if the minimum width of a component is 10
and ipadx is 2, the minimum width of the component within the
gridbag layout becomes 14.
See e622 Creating a GridBagLayout for an example on how to
use a gridbag layout with gridbag constraints.
GridBagConstraints gbc = new GridBagConstraints();
gbc.ipadx = 2;
gbc.ipady = 4;
e622.
Creating a GridBagLayout
e623.
Setting the Location of a Component in a GridBagLayout
e624.
Getting the Number of Rows and Columns of Cells in a GridBagLayout
e625.
Making a GridBagLayout Fill the Container
e626.
Setting the Stretchyness of Rows and Columns in a GridBagLayout Using Layout Weights
e627.
Setting the Stretchyness of Columns and Rows in a GridBagLayout Using Component Weights
e628.
Setting the Stretchyness of a Component Within the Cell of a GridBagLayout Using Fill
e629.
Setting the Location of a Component Within the Cell of a GridBagLayout Using Anchors
e630.
Setting the Space around a Component Within the Cell of the GridBagLayout Using Insets
e632.
Setting a Row or Column of a GridBadLayout to a Particular Size
e633.
Setting Gap Sizes in a GridBadLayout
© 2002 Addison-Wesley.
|