Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 boone qs, layout and components..

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
venu gopal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sarim,
The answeres were right.
1) For the first one the answer is North or South
2) For the Second One disable is the right answer
I can send the code if it's not clear
[This message has been edited by venu gopal (edited January 12, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic