Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Layout

 
Shalini Gopalan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where comes NORTH and SOUTH in GridLayout?
Are u talking about BorderLayout?
 
Vijay, Bakshi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jim Bedenbaugh
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MD = Meaningless Drivel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic