• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt in Layout

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where comes NORTH and SOUTH in GridLayout?
Are u talking about BorderLayout?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MD = Meaningless Drivel
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic