daniel_lawson9999

Daniel Lawson 3G Self Check 1-5

Apr 12th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. //Daniel Lawson
  2. 1. b.
  3. 2.Forgot to declare a Graphics object, and then used a panel object instead of using a graphics object when drawing a line.
  4. 3.It must first print the rectangle and then print the oval instead of the other way around which is used in the program. The way it is done right now, the rectangle is drawing over the existing oval.
  5. 4.The diagonal is correct but the rectangle is incorrect. to get to 50, 40 you must change g.drawRect(10,20,50,40) tp g.drawRect(10,20,40,30); to get the rectangle to be from 10,20 to 50,40
  6. 5.Picture Attached ...
Add Comment
Please, Sign In to add comment