• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Layout Manager

 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
3. If a Button is placed in a Frame and when you resize the button , its height gets affected but not width . Which layout does this work?
1.a FlowLayout
2.a GridLayout
3.the center area of BorderLayout
4.the East or West area of BorderLayout
5. the North or South area of BorderLayout
Can anyone tell me the answer and explain it..
Thanks
sdev.
[This message has been edited by sdev (edited July 31, 2000).]
[This message has been edited by sdev (edited July 31, 2000).]
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sdev,
I think the answer is 4th, i.e, the width of the button won't change when the size of the frame is varied, if the button is placed in the East or West portion of the BorderLayout. This is because BorderLayout honours the preferred width of a component placed in the East or West portion, and honours the height of a component placed in the North or South portion.

Thanks,
Aman
 
Grow your own food... or this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic