wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt in Layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt in Layout" Watch "Doubt in Layout" New topic
Author

Doubt in Layout

Shalini Gopalan
Greenhorn

Joined: Dec 25, 2000
Posts: 12
I have a question asked in a mock exam from the book "Dreaming of Java" by Dilbert, Dogbert et al.
Which layout(s) is more useful, if you want the components to resize horizantally , but not vertically, when the
container is resized ?
Could someone answer this and explain it too, for the sake
of humanity ?

[This message has been edited by Shalini Gopalan (edited December 29, 2000).]
rajani peddi
Ranch Hand

Joined: Nov 27, 2000
Posts: 73
Shalini,

I think that the answer is BorderLayout. The components placed in NORTH and SOUTH in a BorderLayout have their preferred height honoured. So even if a component is resized the height of the components in north and south will not change but only their width.
Hope this helps
rajani
[ March 27, 2002: Message edited by: rajani peddi ]
Jeffrey Lee
Greenhorn

Joined: Dec 29, 2000
Posts: 2
Where comes NORTH and SOUTH in GridLayout?
Are u talking about BorderLayout?
Vijay, Bakshi
Ranch Hand

Joined: Nov 14, 2000
Posts: 40
Well even in the border layout if the container is resized then the components are resized. Only flow layout honours the preferred size of the components the arrangements of the components is altered in the rows when the container is altered., in null layout we can set the bounds, in both the size does not change if we change the size of the container. Someone please answer this one from Shalini.
vishad patel
Greenhorn

Joined: Dec 05, 2000
Posts: 17
hi rajani peddi;
Are you clear your JCP exam?
if Yes, you are stupid .
Do you know about layout? if ,yes you need to clear your knowledge about layout.
Bye.
Sorry.
rajani peddi
Ranch Hand

Joined: Nov 27, 2000
Posts: 73
Hi Mr.Stupid Patel ,
I have cleared my JCP exam with 84%. Infact your statement "Are you clear your JCP exam?" makes no sense and may be you should learn english before learning java.
Regards,
Rajani

Originally posted by vishad patel:
hi rajani peddi;
Are you clear your JCP exam?
if Yes, you are stupid .
Do you know about layout? if ,yes you need to clear your knowledge about layout.
Bye.
Sorry.
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
vishad patel (although you may be long gone) and rajani peddi,
This stops NOW!!!
This is no battlefield here, people are willing to learn here not watching stupid fights.
If you want to have a good fight go over to MD and do it there, but not in my forum, understood?
[ March 27, 2002: Message edited by: Valentin Crettaz ]

SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171
Originally posted by Valentin Crettaz:
vishad patel (although you may be long gone) and rajani peddi,
This stops NOW!!!
This is no battlefield here, people are willing to learn here not watching stupid fights.
If you want to have a good fight go over to MD and do it there, but not in my forum, understood?
[ March 27, 2002: Message edited by: Valentin Crettaz ]

What is MD?


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
MD = Meaningless Drivel
 
 
subject: Doubt in Layout
 
Similar Threads
object references
Question From JQuest Mock Exam...
TEST
inner class
Exception