posted 23 years ago
Hi Sean,
The gridx and gridy fileds of GridBagConstraints class control resizing of a component. Meaning that if, because of some circumstances, the size of the container changes, then the change in size id distributed on the components proportional to their weightx and weighty values. The default value is 0.0 (weightx and weighty are of type double) indicating that no resizing will be done for the components if conatiner is resized. This is the basic function of weightx and weighty.
Thanks.
Milind