File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "AWT-JQ+" Watch "AWT-JQ+" New topic


jeena jose
Ranch Hand

Joined: May 06, 2001
Posts: 69
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???
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: AWT-JQ+
Similar Threads
add method
why a window can not add to a container?
JQ+:Question ID :954959231549
When component class add method will throws an IllegalArguemnt Exception?
AWT qustion