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.
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
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: