I would say A,B are correct. A - I remember reading this somewhere. B - because setting the fill field to BOTH would cause the component to stretch to fill its display area thus the anchor value would have no effect on the component.
Hi Sherin, The correct ans is B. When u set fill=BOTH, there is no point in specifying anchor as the component will occupy all the space available to it when it is resized. C is incorrect b'coz the inverse of the statement is true. Pls correct me if i'm wrong. Raghu
A is incorrect as weightx and weighty can have any double value. The effect of having weightx=2 and weighty=4 is the same as weightx=100 and weighty=200 as the relative value of weightx and weighty is considered.
Hi, I agree with Raghu, for B & C. for A....The API just says that the default value of weightx & weighty is zero & should be a positive. So A is FALSE. Aruna
only b is right. a is wrong because it is not the case always and is not compusary... c is wrong because eventhough you have set the anchor field you can always fill the cell and that will impact the layout of the component
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, the permaculture playing cards