This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
3. If a Button is placed in a Frame and when you resize the button , its height gets affected but not width . Which layout does this work? 1.a FlowLayout 2.a GridLayout 3.the center area of BorderLayout 4.the East or West area of BorderLayout 5. the North or South area of BorderLayout Can anyone tell me the answer and explain it.. Thanks sdev. [This message has been edited by sdev (edited July 31, 2000).] [This message has been edited by sdev (edited July 31, 2000).]
"SCJP5 | SCWCD5| DEVELOPER"
posted 15 years ago
Hi sdev, I think the answer is 4th, i.e, the width of the button won't change when the size of the frame is varied, if the button is placed in the East or West portion of the BorderLayout. This is because BorderLayout honours the preferred width of a component placed in the East or West portion, and honours the height of a component placed in the North or South portion.