What is the base class for all swing components?
JFC Swing components (like textfields,buttons,checkboxes,lists etc. ) are direct replacements of corresponding AWT components and it replaces just some section of AWT GUI components,other aspects of AWT like layout managers remains unchanged.All these Swing components are extended from the javax.swing.JComponent, which has following hierarchy:
java.lang.Object
- java.awt.Component
- java.awt.Container
- javax.swing.JComponent
- java.awt.Component
- java.awt.Container
- javax.swing.JComponent