import javax.swing.*;import java.awt.*;/** An instance is a JPanel that can paint something on the screen.    To make the program work as    Weiss suggests, make this class look like that on page 854 of Weiss.      */public class GUICanvas extends JPanel {    // Draw an oval    public void paint(Graphics g) {        // Draw an oval that fits in the box white top-left        // corner is (5,6), width 40, and height 60        //    g.drawOval(5, 6, 40, 60);        Color c= g.getColor();        g.setColor(Color.green);        g.fillRect(0,0,getWidth(),getHeight());        g.setColor(c);    }        // Set parameters for drawing on this JPanel.    public void setParams(String aShape, String aColor, int x,                          int y, int size, boolean fill){                              }}