posted 20 years ago
Choose the correct statement about gridbag layout:
A. The weightx & weighty should have values between 0.0 & 1.0
B. If you specify the fill field is BOTH, there is no meaning to set anchor field
C. If you specify anchor field there is no meaning to set fill field is BOTH
Ans given A,B,C
In API it is specified that weightx,weighty are double values
and default is 0.In some code I have seen them using a value of 100 for weightx.somebody please give actual range of values for weightx/weighty.
Also C appears to be wrong. B is right . How the reverse condition(c) be true??