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
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.

Drawing Panel
Step by Step Solution
3.43 Rating (169 Votes )
There are 3 Steps involved in it
public class ShowDesign2 public static void mainString ar... View full answer
Get step-by-step solutions from verified subject matter experts
