This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Layout Manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Layout Manager" Watch "Layout Manager" New topic

Layout Manager

sasank manohar
Ranch Hand

Joined: Feb 14, 2008
Posts: 186
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..
[This message has been edited by sdev (edited July 31, 2000).]
[This message has been edited by sdev (edited July 31, 2000).]

Amandeep Waraich
Ranch Hand

Joined: Jul 14, 2000
Posts: 56
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.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Layout Manager
It's not a secret anymore!