47 Q Why does JComponent class have add() and remove() methods but Component class does not?
Swing AWT Interview Questions
(Continued from previous question...)
47 Q Why does JComponent class have add() and remove() methods but Component class does not?
A JComponent is a subclass of Container and can contain other components and JComponents.
(Continued on next question...)
Other Interview Questions
|