Inheritance and GUIs

If we take a look at the inheritance hierarchy of the javax.swing.JFrame class, it says that a JFrame is a Frame, a Frame is a Window, a Window is a Container, a Container is a Component, and a Component is an Object. By applying the definition of inheritance given at the top, we can say that:

A JFrame is a frame, window, container, component, and an object all in one. We can compare inheritance to this: