Guest User

Untitled

a guest
Oct 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. /*
  2. * Jason Cheung
  3. * Program2
  4. */
  5.  
  6. import wheels.users.*;
  7. import java.awt.Color;
  8.  
  9. public class MyCharacters extends Frame {
  10. private CartoonCharacter _char1;
  11. private CartoonCharacter _char2;
  12. private CartoonCharacter _char3;
  13. private ConversationBubble _charTalk1, _charTalk2, _charTalk3;
  14.  
  15. public MyCharacters() {
  16. _char1 = new CartoonCharacter(Color.RED,Color.GREEN,Color.BLUE,Color.CYAN,Color.BLACK,Color.PINK,100,200,50,50);
  17. _char2 = new CartoonCharacter(Color.GREEN,Color.BLACK,Color.CYAN,Color.PINK,Color.RED,Color.BLUE,375,200,80,50);
  18. _char3 = new CartoonCharacter(Color.BLACK,Color.YELLOW,Color.GREEN,Color.BLUE,Color.PINK,Color.CYAN,630,200,20,50);
  19. _charTalk1 = new ConversationBubble("I am in the 62% of adults in the USA that are skinny, average, or overweight.");
  20. _charTalk1.setLocation(0,20);
  21. _charTalk2 = new ConversationBubble("I am in the 36% of adults in the USA that are obese.");
  22. _charTalk2.setLocation(250,50);
  23. _charTalk3 = new ConversationBubble("I am in the 2% of adults in the USA that are underweight.");
  24. _charTalk3.setLocation(490,50);
  25. }
  26.  
  27. public static void main(String [] args) {
  28. MyCharacters app = new MyCharacters();
  29. }
  30. }
Add Comment
Please, Sign In to add comment