JComponent and Component

Q

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

✍: FYICENTER.com

A

Because JComponent is a subclass of Container, and can contain other components and jcomponents.

2007-04-03, 4543👍, 0💬