JFrame, JApplet, and JDialog are heavy weightcontainerclasses that can be displayed alone andare used to contain other components.JFrame: the container that holds other Swing user-interface components in Java Graphical applications.It can be used in a Java program with a main method (Applications).JApplet: It is a subclass of the Applet class. Applet is defined in java.applet package and JApplet is defined in javax.swing package. You need to create a class that extendsJApplet to create a Swing based Java applet. Such class will not contain a main method. Instead it contains applet purpose methods such as init(), start(), stop(), and destroy(). Theapplet will be displayed with a html file or appletviewer. (see appendix G in your book – pages825-840)JDialog/JOptionPane: a popup window or message box generally used as a temporary window to receive information from a user or provide notification that an event has occurred.