Graphics – Part 2

Graphics: Part 2 – OPTIONAL: Computer Science 30S

NOTE: you can find another copy of this example on the GitHub branch here

  • Continue to build on a large example for this course that will help you learn the content and have a reference for you when you complete assessments
  • So start by opening the previous example and adding to it
  • Add the following properties to the top of the Graphics1.java class:

Capturedgs(41)

  • Add to the constructor method of the Graphics1.java class:

Capdgsture(39)

  • Now add the setControls() method:

Capturefdhh1(11)

  • And this code to the method:

Capturefdh2(27)

  • Run the application to make sure you have no errors!