A Segment of the Java Class Tree Object Component Container Panel Applet JApplet JComponent JPanel SimpleApplet Drawing setBackground() and getBackground() are inherited…