Component class - Methods - AWT and Swing
Q. Where are the following four methods commonly used?
1) public void add(Component c)
2) public void setSize(int width,int height)
3) public void setLayout(LayoutManager m)
4) public void setVisible(boolean)- Published on 19 Oct 15a. Graphics class
b. Component class
c. Both A & B
d. None of the above
ANSWER: Component class