Modify your ShowDesign program from the previous exercise so that it has a method that accepts parameters

Question:

Modify your ShowDesign program from the previous exercise so that it has a method that accepts parameters for the window width and height and displays the rectangles at the appropriate sizes. For example, if your method was called with values of 300 and 100, the window would look like Figure 3G.27.

Drawing Panel


Data from Previous Exercise

Write a program called ShowDesign that uses the DrawingPanel to draw Figure 3G.26.

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

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: