This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes BorderLayout Clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "BorderLayout Clarification" Watch "BorderLayout Clarification" New topic

BorderLayout Clarification

Lucy Das

Joined: Jul 14, 2002
Posts: 8
I could not find any documentation that substantiates the following...
Could anybody throw some light on this subject?
Thanks in advance.

Question 40.
A frame uses BorderLayout Management and has components added to all the regions. On resizing the Frame Some space becomes available. The space is alloted to the regions, in which Order of preference?

A. North , South, West, East and then Center.
B. North , West, South, Center and then Center.
C. Center, East, West, South and then North.
D. West, Center, South, North and then East
The answer is A.
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Check out the following page:
Effective Layout Management : BorderLayout

[Blog] [Blogroll] [My Reviews] My Linked In
Lucy Das

Joined: Jul 14, 2002
Posts: 8
Thanks Valentin.. That was helpful.
I agree. Here's the link:
subject: BorderLayout Clarification
It's not a secret anymore!