File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes GridBagLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "GridBagLayout" Watch "GridBagLayout" New topic
Author

GridBagLayout

eskay kumar
Ranch Hand

Joined: Jul 22, 2000
Posts: 71
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

Joined: Jul 22, 2000
Posts: 71
My Exam is tomorrow ... PLEASE HELP !
thanks
shilpa
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GridBagLayout