Write a program that displays a rectangle with upper-left corner point at (40, 40), width 50, and

Question:

Write a program that displays a rectangle with upper-left corner point at (40, 40), width 50, and height 40. Enter the values in the text fields x and y and press the Translate button to translate the rectangle to a new location, as shown in Figure 31.50a.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: