• 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

GridBagLayout

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please tell if my ans to the foll are right
Which of the following is true regarding GridBagLayout
A) if a component has been given fill both is true, then as the container resizes the component resizes
B) The number of rows and columns are fixed while loading the components.
C) The number of rows and columns are fixed while loading the layout itself .
D) if a component has a non-zero weightY value, then the component grows in height as the container is resized
my ans : a
but i'm not sure about b or c
d according to me is false as its a relative to the weightY values of the other comp in teh column. Besides resize could even mean making the container smaller
------
Q2) You want a component to retain its width, but not the height when resized.
How will you achieve this ?
A) Place the component in North or South in a BorderLayout
B) Place the component in the Center of a BorderLayout
C) Place the component in East or West in a BorderLayout
my ans : C - as the height here would be the preferred size of the component - which should remain unchanged inspite of resizing.
Thanks a lot
shilpa !

[This message has been edited by eskay kumar (edited September 12, 2000).]
 
eskay kumar
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Exam is tomorrow ... PLEASE HELP !
thanks
shilpa
 
reply
    Bookmark Topic Watch Topic
  • New Topic