Since Swing Framework contains a large set of components which provides rich functionalities & also allows high levels of customization.
All these components are very lightweight components & They all are derived from the JComponent class. It also supports the pluggable look & feel.
In general, the Swing components have been derived from the JComponent class.
The JComponent class provides the functionality that is common to all components.For example, JComponent supports the pluggable look & feel.
The JComponent inherits AWT classes Container as well as Component.
Thus a Swing component has built on and compatible with AWT component.
All of Swing’s components are represented by classes defined within the package javax.swing.
The following table shows the class names for Swing components (including those used as containers).