Write a JavaFX program that draws circles using the samerubberbanding technique as shown in class to draw lines. The centerof the circle should be where you first press the left mousebutton. Use the distance between the current mouse location and thecenter point to determine the radius of the circle.
Your circles should have have stroke width 5 and shouldalternate between red and blue (the first circle is red, the secondis blue, the third is red …)
Expert Answer
Answer to Write a JavaFX program that draws circles using the same rubberbanding technique as shown in class to draw lines. The ce…