Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Exercise2 here.
- *
- * @author Kailey McNeal
- * @version 10-9-14
- * Exercise 1 p223
- */
- import java.awt.*;
- import java.applet.*;
- public class Exercise1 extends Applet
- {
- public void paint (Graphics g)
- {
- g.setColor(Color.blue);
- g.fillOval(50,25,40,40);
- g.fillOval(130,25,40,40);
- g.setColor(Color.red);
- g.fillRect(70,45,80,80);
- g.setColor(Color.black);
- g.drawLine(70,85,150,85);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement