Home Segments Top Top Previous Next

672: Mainline

As indicated in the class hierarchy shown in Segment 670, JFrame is a subclass of Frame; JApplet is a subclass of Applet; JComponent is a subclass of Component; and JPanel is a subclass of JComponent.

Each of the classes beginning with the letter J is called a swing class. Swing classes were developed later than their nonswing superclasses, and because they offer more features and more flexibility, you should use them rather than nonswing analogs.