Advertisement
mcnealk

Exercise1

Oct 9th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /**
  2. * Write a description of class Exercise2 here.
  3. *
  4. * @author Kailey McNeal
  5. * @version 10-9-14
  6. * Exercise 1 p223
  7. */
  8. import java.awt.*;
  9. import java.applet.*;
  10. public class Exercise1 extends Applet
  11. {
  12. public void paint (Graphics g)
  13. {
  14. g.setColor(Color.blue);
  15. g.fillOval(50,25,40,40);
  16. g.fillOval(130,25,40,40);
  17. g.setColor(Color.red);
  18. g.fillRect(70,45,80,80);
  19. g.setColor(Color.black);
  20. g.drawLine(70,85,150,85);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement