The JApplet Class The applet class is an awt class and is not designed to work with Swing components. To use Swing components in Java applets, it is necessary to create a Java applet that extends javax. swing JApplet, which is a subclass of java applet applet. JApplet inherits all the methods from the applet class. In addition, it provides support for laying out Swing components Liang, Introduction to Java Programming, Sixth Edition, (c)2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved. 0-13-148952-6 3 The JApplet Class The Applet class is an AWT class and is not designed to work with Swing components. To use Swing components in Java applets, it is necessary to create a Java applet that extends javax.swing.JApplet, which is a subclass of java.applet.Applet. JApplet inherits all the methods from the Applet class. In addition, it provides support for laying out Swing components