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
posted
0
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 ]
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
posted
0
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
posted
0
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
posted
0
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 ]
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 ]