This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes AWT-JQ+ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "AWT-JQ+" Watch "AWT-JQ+" New topic
Author

AWT-JQ+

jeena jose
Ranch Hand

Joined: May 06, 2001
Posts: 69
hi,
i have a doubt about this question:
which of the following will add the component 'comp' to a container 'c' if its layout is governed by gridLayout 'g'

a. c.add(comp)
b. c.add("Center",comp)
c. g.add(comp)
d. g.addLayoutComponent("comp name",comp)
e. add(comp,-1)

answers given are a,d,e.
BUT choice b also work fine.
am i right???
 
jQuery in Action, 2nd edition
 
subject: AWT-JQ+