Thursday, February 12, 2009

Why does JComponent have add() and remove() methods but Component does not

Question :Why does JComponent have add() and remove() methods but Component does not?
Answer :: because JComponent is a subclass of Container, and can contain other components and jcomponents.

No comments: