posted 22 years ago
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???