solution for shapes - import javax.swing import java.awt...

This preview shows page 1 out of 1 page.

import javax.swing.*;import java.awt.*;public class Shapes extends JApplet{public void paint (Graphics page){setSize(400,400);page.setColor(Color.blue);page.fillRect (0, 0, 200, 200);page.fillRect (200, 200, 100, 100);page.fillRect (300, 300, 50, 50);page.fillRect (350, 350, 25, 25);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture