my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes 2 boone examq, layout and components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "2 boone examq, layout and components" Watch "2 boone examq, layout and components" New topic
Author

2 boone examq, layout and components

sarim raza
Ranch Hand

Joined: Nov 02, 2000
Posts: 232
Question 53: A component can be resized horizontally, but not vertically, when it is placed in which region of a BorderLayout?
Select the one right answer.
a.North or South
b.East or West
c.Center
d.North, South, or Center
e.any region
//ANSWER IS A , BUT I THOUGHT IT WERE THE EAST OR WEST REGIONS WHICH
HONOURED THE PREFERRED WIDTH OF THE COMPONENT WHILE THE HEIGHT WERE
RESTRICTED ??
What method from Java 1.0.2 can you use to remove a Component from a user
interface display?
Select all right answers.
a.disable()
b.hide()
c.remove()
d.delete()
e.unhook()
//ANSWER IS A, BUT I REMEMBER READING ABOUT THE REMOVE() METHOD IN THE
CONTAINER CLASS, that performs the opposite of add(), isnt that also going to work in
this case ??
Suresh Selvaraj
Ranch Hand

Joined: Nov 14, 2000
Posts: 104
Hi,
Given:
Select the one right answer.
a.North or South
b.East or West
c.Center
d.North, South, or Center
e.any region
The correct answer is A, i.e, BorderLayout honors the preferred height of the Component in the North and South regions.
East & West - BorderLayout honors the preferred width and not the height.
- Suresh Selvaraj


Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 2 boone examq, layout and components
 
Similar Threads
Alignment in Flowlayout:
BorderLayout placement Constraint
2 boone qs, layout and components..
for jqplus team
Internet Problem