Create A Subclass Of The Class

JPanelnamedDisplayArea. An object of thepackage waste;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JPanel;
/**
*
* @author
*/
public class DisplayArea extends JPanel {
public static final int DISPLAY_SIZE = 500;…Java Programming