Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

2 boone examq, layout and components

 
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 ??
 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Let me tell you a story about a man named Jed. He made this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!