Saturday, 18 February 2012

Why does JComponent have add() and remove() methods but Component does not? | Java Swings

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